Language Reference Guide : 4. System Classes : ChoiceItem Class
 
Share this page                  
ChoiceItem Class
The ChoiceItem class defines the rows that make up the ValueList attribute of a ChoiceField object. The values in a ChoiceItems array are the choices that the user sees in fields that display fixed choice lists. These fields are the enumerated fields (RadioField, OptionField, and ListField) and menu list fields.
If you are using the ChoiceList for a field defined as a varchar field, OpenROAD displays the EnumText value. If you are using the ChoiceList for a field defined as an integer field, OpenROAD displays the EnumValue value.
You can use values in addition to the text of the choice to program independently of the specific text values. By defining the set of integer EnumValues associated with the choices and using those integer values in the 4GL code, you can change the text of the choices without affecting the program.
Inherits From
Object Class
Inherited By
ChoiceBitmap
ChoiceDetail
Attributes
EnumDisplay
EnumText
EnumValue
IsSelected
ToolTipText
Methods
None