ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / Developing in Java
  • Overview
  • How to?
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Overview
A global procedure in WLanguage can be called directly from the code of a global procedure in Java.
How to?
To call a WLanguage procedure directly from the code of a global procedure in Java:
  1. Type the code of the WLanguage procedure. The WLanguage procedure must comply with some rules:
    • The procedure and the set of procedures to which it belongs must have a valid name in Java.
    • The parameters of the WLangage procedure as well as the return value must be typed with the supported types: Boolean, integer, integer over 8, real, string, etc.. We advise you to pass the parameters by value via the "LOCAL" keyword.
    • The "Java" attribute must be added to the WLanguage procedure.
    Example:
    PROCEDURE nWL_AjouteUn(n is an integer), Java: integer
    RETURN n+1
  2. Then, simply call the procedure from the Java code. The name of the procedure must be prefixed with the name of the set of procedures (you can also add the import to avoid using prefixes).
    For example:
    int nReturnInt(int i)
    {
    return MySet.nWL_AddOne(i);
    }
Minimum version required
  • Version 26
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/30/2024

Send a report | Local help