PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK

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
Default (Property)
In french: Défaut
..Default is used to find out whether the parameter passed to a procedure was specified or whether it was assigned with its default value.
Versions 22 and later
WEBDEV - Browser code This property is now available in browser code.
WEBDEV - Browser code This property is available only if the new WLanguage framework is enabled. See Browser code (WLanguage): Framework 2 for more details.
New in version 22
WEBDEV - Browser code This property is now available in browser code.
WEBDEV - Browser code This property is available only if the new WLanguage framework is enabled. See Browser code (WLanguage): Framework 2 for more details.
WEBDEV - Browser code This property is now available in browser code.
WEBDEV - Browser code This property is available only if the new WLanguage framework is enabled. See Browser code (WLanguage): Framework 2 for more details.
Example
// Call the procedure
MyProc("A")
// Declare the procedure
PROCEDURE MyProc(p1, po2 = "Y", po3 = "Z")
// In this example:
MyParameters[1]..Default // is set to False
p1..Default               // is set to False
MyParameters[2]..Default // is set to True
po2..Default              // is set to True
MyParameters[3]..Default // is set to True
po3..Default              // is set to True
Syntax
<Result> = <Parameter Name>..Default
<Result>: Boolean
  • True if the parameter was not specified during the call to the procedure (the default value was used),
  • False otherwise.
<Parameter Name>: Character string (with or without quotes)
Name of the parameter used. This parameter is identified:
  • by using the MyParameters keyword and by specifying the subscript of the parameter used. For example: MyParameters[1] to handle the first parameter passed to the procedure.
  • by using the name of the parameter specified in the declaration of the procedure.
Remarks
  • ..Default takes into account the passing of parameters for the current procedure only. If several procedures are nested and if they transmit the same parameter by using (or not) the default value, ..Default takes into account the value of the parameter in the procedure where this propriety is used.
  • ..Default can only be used in the process that declares the element.
Minimum version required
  • Version 12
This page is also available for…
Comments
Click [Add] to post a comment