ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / Reflection functions
  • Properties specific to the description of Option Description variables
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
Option Description (Type of variable)
In french: Description d'Option
An Option Description variable is used to handle the characteristics of a combination option through programming.
The characteristics of this type are returned by several WLanguage properties.
Remark: For more details on the declaration of this type of variable and the use of WLanguage properties, see Declaring a variable.
Example
// Retrieves the definition of d type
d is Definition
d = GetDefinition(FileAction)
// Displays the name of d type
Trace(d.Name)
 
// Solution 1: list the combination options
IF d.Type = wlCombination THEN
FOR EACH MyElement OF d.Option
Trace(MyElement.Name)
END
END
// Solution 2: list the combination options
// (by using the Option Description type)
IF d.Type = wlCombination THEN
D1 is Option Description
FOR EACH D1 OF d.Option
Trace(D1.Name)
END
END
Remarks

Properties specific to the description of Option Description variables

The following properties can be used to handle a combination option:
Property nameType usedEffect
AliasBoolean
  • True if the option is an alias of an existing option or combination of options,
  • False otherwise.
This property is read-only.
AssociatedValueAll typesAssociated value of option.
This property is read-only.
DeclarationDefinition variableOption declaration.
This property is read-only.
InheritedBoolean
  • True if the combination is inherited from an extended combination,
  • False otherwise.
This property is read-only.
NameCharacter stringOption name.
This property is read-only.
ValueAll typesOption value.
This property is read-only.
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 08/22/2022

Send a report | Local help