The SelectionListType VariableTypeis used for a Variablewhere the possible values are provided by a set of values.

The Selections Propertycontains an array of values which represent valid values for this VariableType’svalue.

The DataTypeof the Selections Propertyarray shall be of the same DataTypeas this VariableType.

Each array element of the optional SelectionDescriptions Propertycontains a human-readable representation of the corresponding value in the Selections Propertyand shall be of the same array size as the Selections Property.

The value of this VariableTypemay be restricted to only the values defined in the Selections Propertyby setting the optional RestrictToList Propertyto a value of True. If the RestrictToList Propertyis not present or has a value of Falsethen the value is not restricted to the set defined by the Selections Property.

The VariableTypeis formally defined in Table 77.

Table 77– SelectionListType Definition

Attribute

Value

BrowseName

SelectionListType

IsAbstract

False

ValueRank

−2 (−2 = Any)

DataType

BaseDataType

References

NodeClass

Browse

Name

DataType

TypeDefinition

ModellingRule

Subtype of the BaseDataVariableType defined in 7.4

HasProperty

Variable

Selections

BaseDataType[]

PropertyType

Mandatory

HasProperty

Variable

SelectionDescriptions

LocalizedText[]

PropertyType

Optional

HasProperty

Variable

RestrictToList

Boolean

PropertyType

Optional