|
|
|
|
- Properties specific to the description of Value Description variables
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.
// 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 name | Type used | Effect |
---|
Alias | Boolean | - True if the value is an alias of an existing value,
- False otherwise.
This property is read-only. | AssociatedValue | All types | Associated value. This property is read-only. | Declaration | Definition variable | Value declaration. This property is read-only. | Inherited | Boolean | - True if the value is inherited from an extended enumeration,
- False otherwise.
This property is read-only. | Name | Character string | Value name. This property is read-only. | Value | All types | Value. This property is read-only. |
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|