PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • Overview
  • Procedure and function: local or global
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Overview
A procedure is used to associate an identifier with a statement block. Then, the procedure can be called in a process.
A function is used to define a sub-program that performs several statements before returning a value to the calling program.
Difference between a procedure and a function:
  • A procedure returns no result.
  • A function returns a result.
In WLanguage, there is no distinction between the procedures and the functions. The procedures and the functions are managed in the same way. A procedure, like a function, may (or may not) return a result.
The procedures and the functions can have a fixed or variable number of parameters.
The declaration syntax is the same for the procedures and for the functions. See the declaration of a procedure or function for more details.
Versions 16 and later
You have the ability to create overloaded procedures. See Prototype overload for more details.
New in version 16
You have the ability to create overloaded procedures. See Prototype overload for more details.
You have the ability to create overloaded procedures. See Prototype overload for more details.
The calling syntax is the same for the procedures and for the functions. See the call to a procedure or function for more details.
A procedure (or a function) can be global or local. See the global and local procedures and functions for more details.
Procedure and function: local or global
Two types of procedures are available:
  • Global procedure: can be used in all the project processes. This global procedure is stored in the project.
  • Local procedure: can be used in all processes related to the object (window or report) where this procedure was declared. This local procedure is stored in the object.
Important: You must not declare two procedures with the same name (especially a global procedure and a local procedure).
Versions 20 and later
Note: You have the ability to use internal procedures in WLanguage. See Internal procedure for more details.
New in version 20
Note: You have the ability to use internal procedures in WLanguage. See Internal procedure for more details.
Note: You have the ability to use internal procedures in WLanguage. See Internal procedure for more details.
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment