This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage syntax / WLanguage procedures / Procedure parameters
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WindowsLinuxPHPWEBDEV - Browser code
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Stored procedures
A procedure can receive parameters. Let's see the different possibilities regarding the management of parameters in WLanguage:
  • Passing parameters: by reference and value.
    By default, when calling a procedure, the parameters are passed by variable (by address or by reference). You also have the ability to pass the parameters by value in WLanguage.
  • Data type of parameters.
    The description of the parameter type is optional. However, you can specify the data types of parameters.
  • Optional parameters.
    Some of the parameters passed to a procedure can be optional parameters.
  • Variable parameters.
    You have the ability to handle the parameters passed to a procedure using a variable number of parameters.
  • Useful parameters.
    You have the ability to manage the parameters declared but not used.
  • In WLanguage, there is no distinction between the procedures and the functions. The procedures and the functions are managed in the same way.
  • You have the ability to create overloaded procedures. For more details, see Prototype overload.
  • WEBDEV - Server code You have the ability to use named parameters. For more details, see Calling a procedure: Named parameters.
  • A parameter can correspond to any type of variable. A class instance can be passed as parameter to a procedure.
Minimum version required
  • Version 9
This page is also available for…
Click [Add] to post a comment

Last update: 10/27/2023

Send a report | Local help