LAYOUTGRID{[f01 ][f02 ][f03 ]}ENDENDATTRIBUTESCOMBOBOX f01 = formonly.combo1, NOT NULL, ITEMS=(NULL,"Y","N");COMBOBOX f02 = formonly.combo2, NOT NULL, ITEMS=((NULL,"Please select an item..."),("Y","Yes"),("N","No"));COMBOBOX f03 = formonly.combo3, NOT NULL;
MAINDEFINE combo1, combo2, combo3 STRINGDEFINE l_cb ui.ComboBox OPEN WINDOW w WITH FORM "20081118a" INPUT combo1, combo2, combo3 WITHOUT DEFAULTS FROM combo1, combo2, combo3 BEFORE INPUT LET l_cb = ui.ComboBox.forName("combo3") CALL l_cb.addItem(NULL,"Please select an item...") CALL l_cb.addItem("Y","Yes") CALL l_cb.addItem("N","No") END INPUTEND MAIN