PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
New WINDEV, WEBDEV, WINDEV Mobile 23 feature!
  • 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 can be retrieved by several WLanguage properties.
Note: See Declaring a variable for more details.
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 available in read-only.
DeclarationDefinition variableValue declaration.
This property is available in read-only.
InheritedBoolean
  • True if the value is inherited from an extended enumeration,
  • False otherwise.
This property is available in read-only.
NameCharacter stringName of value.
This property is available in read-only.
ValueAll typesValue.
This property is available in read-only.
AssociatedValueAll typesAssociated value.
This property is available in read-only.


Note: These properties can be handled by using one of the following syntaxes:
  • <Variable Name>..<Property Name>
  • <Variable Name>.<Property Name>
Minimum required version
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment