Example Using the INITIALIZER attribute in the form file
Form Specification File:
LAYOUT
GRID
{
Airport: [cb01 ]
}
END
END
ATTRIBUTES
COMBOBOX cb01 = FORMONLY.airport TYPE CHAR, INITIALIZER = initcombobox;
END
Initialization function:
FUNCTION initcombobox(comboBox ui.ComboBox) RETURNS ()
CALL comboBox.clear()
CALL comboBox.addItem("CDG", "Paris-Charles de Gaulle, France")
CALL comboBox.addItem("LCY", "London-City Airport, UK")
CALL comboBox.addItem("LHR", "London-Heathrow, UK")
CALL comboBox.addItem("FRA", "Frankfurt Airport, Germany")
CALL comboBox.addItem("SFO", "San Francisco International Airport, CA" )
END FUNCTION