ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage syntax / WLanguage procedures / Procedure parameters
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
A procedure can receive parameters. Here are the different options for handling parameters in WLanguage:
  • Passing parameters by address and by value.
    By default, when calling a procedure, parameters are passed by variable (by address or by reference). In WLanguage, you can also pass parameters by value.
  • 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 can manipulate the parameters passed to a procedure using a variable number of parameters.
  • Useful parameters.
    You can declare parameters without using them.
Reminder:
  • In WLanguage, there is no distinction between procedures and functions. Procedures and functions are used in the same way.
  • You can create overloaded procedures. For more details, see Prototype overload.
  • AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst You can use named parameters. For more details, see Calling a procedure: Named parameters.
    Subscription-exclusive new feature
    AndroidAndroid Widget Named parameters are now available. Note: This feature is only available in subscription-based versions, starting with WINDEV Suite 2025 - Update 4.
    For more details, see Using new features exclusive to the subscription-based version of WINDEV Suite 2025.
  • A parameter can correspond to any type of variable. A class instance can be passed as parameter to a procedure.
  • iPhone/iPad If the parameters to be passed to the procedure are stored in an array, you can use ArrayToParameters to get the parameters in the format expected by the procedure.
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/29/2025

Send a report | Local help