Tuesday, 7 October 2008

Combo-Box With Fixed Values

The data of a combo box can either be populated directly (from OBL) or dynamically using a list group. In this case, the values are populated directly. The visible entries of the combo box are defined in Listitems (multiple language supported) and the associated values are defined in Values; the entries are separated by comma ','.

BEGIN Combobox Combobox
Iditem = "MyItem"
Left = 174
Top = 4
Width = 300
Height = 20
Listitems = "One,Two,Other"
Values = "1,2,"
END

Results in a combobox with tree entries:
- One (1)
- Two (2)
- Other (null)