|
|
|
|
|
|
Category: WLanguage procedures |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
To simplify the maintenance or the use of existing code by other developers, WINDEV proposes an automatic documentation for the procedures (or class methods)...
|
|
|
|
|
|
|
Syntax for calling a local or global procedure.
|
|
|
|
|
|
|
A color (text color) can be assigned to the procedures so that they can be easily classified and identified...
|
|
|
|
|
|
|
The different syntaxes for declaring a procedure...
|
|
|
|
|
|
|
By using extension procedures, you can add your own WLanguage procedures to different types of variables (string, date, color etc.)...
|
|
|
|
|
|
|
A global procedure can be used in all the processes or events of the project.
|
|
|
|
|
|
|
Several features require a procedure called once or several times via a WLanguage function ("Callback").
|
|
|
|
|
|
|
A lambda ("lambda function") is a more concise way to write internal procedures...
|
|
|
|
|
|
|
Two types of procedures are available...
|
|
|
|
|
|
|
WLanguage includes the "WL" keyword...
|
|
|
|
|
|
|
A procedure is used to associate an identifier with a statement block...
|
|
|
|
|
|
|
Une procédure réactive est une procédure qui va réagir à tout changement de valeur d'un champ ou d'une variable...
|
|
|
|
|
|
|
The procedures and the methods of classes can have several syntaxes.
|
|
|
|
|
|
|
The scope of a procedure defines whether it is public, private, etc...
|
|
|
|
|
|
|
In most cases, old code contains procedures that are used but that do no longer match the current quality standard...
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|