PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
This content has been translated automatically. Click here to view the French version.
  • 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/iPadApple WatchUniversal Windows 10 AppWindows Mobile
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 by programming.
The characteristics of this type are returned by several WLanguage properties.
Remark: See Declaring a variable for more details on the declaration of this type of variable and the use of WLanguage properties.
Example
// Retrieves the definition of d type
d is Definition
d = GetDefinition(Computer1)
// Displays the name of x type
Trace( d.Nom)
//  List the enumeration values
IF d.Type = wlEnumeration THEN
FOR EACH MyElement OF d.Value
Trace(MyElementName)
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.Nom)
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.
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.
AssociatedValueAll typesAssociated value.
This property is read-only.
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment