ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage properties / Various properties
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Default (Property)
In french: Défaut
The Default property determines if a parameter has been passed to a procedure with a custom or default value.
}
WEBDEV - Browser code This property is available only if the new WLanguage framework is enabled. For more details, see Browser code (WLanguage): Framework 2.
Example
// Appel de la procédure
MaProc("A")
// Déclaration de la procédure
PROCEDURE MaProc(p1, po2 = "Y", po3 = "Z")
// Dans cet exemple: 
MyParameters[1].Default // vaut Faux
p1.Défaut               // vaut Faux
MyParameters[2].Default // vaut Vrai
po2.Défaut              // vaut Vrai
MyParameters[3].Default // vaut Vrai
po3.Défaut              // vaut Vrai
Syntax
<Result> = <Parameter used>.Default
<Result>: Boolean
  • True if the parameter was not specified during the call to the procedure (the default value was used),
  • False otherwise.
<Parameter used>: Parameter name
Name of the parameter used. This parameter is defined:
  • using the MyParameters keyword and specifying the index of the parameter used. For example: MyParameters[1] to manipulate the first parameter passed to the procedure.
  • using the parameter name specified in the procedure declaration.
Remarks
  • The Default property only takes into account the parameters passed to the current procedure. If multiple procedures are nested and pass the same parameter with or without the default value, the Default property only takes into account the value of the parameter in the procedure where the property is used.
  • The Default property can only be used in the process in which the element is declared.
Minimum version required
  • Version 12
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/24/2024

Send a report | Local help