ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / Reflection functions
  • Properties specific to the description of Value 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
Value Description (Type of variable)
In french: Description de Valeur
A Value Description variable is used to handle the description of an enumeration value 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(Computer1)
// Displays the name of x type
Trace(d.Name)
//  List the enumeration values
IF d.Type = wlEnumeration THEN
FOR EACH MyElement OF d.Value
Trace(MyElement.Name)
END
END
// Other possibility: Use a value description
IF d.Type = wlEnumeration THEN
D1 is Value Description
FOR EACH D1 OF d.Value
Trace(D1.Name)
END
END
Remarks

Properties specific to the description of Value Description variables

The following properties can be used to handle a description of enumeration value:
Property nameType usedEffect
AliasBoolean
  • True if the value is an alias of an existing value,
  • False otherwise.
This property is read-only.
AssociatedValueAll typesAssociated value.
This property is read-only.
DeclarationDefinition variableValue declaration.
This property is read-only.
InheritedBoolean
  • True if the value is inherited from an extended enumeration,
  • False otherwise.
This property is read-only.
NameCharacter stringValue name.
This property is read-only.
ValueAll typesValue.
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