PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN

WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Default (Property)
In french: Défaut
The Default property is used to determine if a parameter has been passed to a procedure with a custom or default value.
Versions 17 and later
iPhone/iPad This property is now available for iPhone/iPad applications.
New in version 17
iPhone/iPad This property is now available for iPhone/iPad applications.
iPhone/iPad This property is now available for iPhone/iPad applications.
Versions 18 and later
Universal Windows 10 App This property is now available in Windows Store apps mode.
New in version 18
Universal Windows 10 App This property is now available in Windows Store apps mode.
Universal Windows 10 App This property is now available in Windows Store apps mode.
Versions 21 and later
Apple Watch This property is now available in Apple Watch mode.
Universal Windows 10 App This property is now available in Universal Windows 10 App mode.
New in version 21
Apple Watch This property is now available in Apple Watch mode.
Universal Windows 10 App This property is now available in Universal Windows 10 App mode.
Apple Watch This property is now available in Apple Watch mode.
Universal Windows 10 App This property is now available in Universal Windows 10 App mode.
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. For more details, see Browser code (WLanguage): Framework 2.
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. For more details, see Browser code (WLanguage): Framework 2.
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. For more details, see Browser code (WLanguage): Framework 2.
Example
// Call the procedure
MyProc("A")
// Declare the procedure
PROCÉDURE 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 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 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
  • 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