4. System Classes : ChoiceItem Class : EnumValue Attribute
 
Share this page                  
EnumValue Attribute
Data Type: integer
4GL Access: RW
The EnumValue attribute contains the enumerated value for the list element.
This value does not need to be unique among the choices. Consequently, you can show several textual choices to the end user that all map to the same EnumValue for use in the program. However, when the values for EnumValue are not unique and the ChoiceList object is associated with an integer field, there is some ambiguity when you try to set the field's value from inside the application. When this happens, OpenROAD sets the field to the first matching ChoiceItem object it finds in the choice list.