Description
Sets the list of items to display for the dropdown of a combobox field.
Applies to
Syntax
rtename.FormComboBoxSetItems(integer fieldID, string items[])
Argument |
Description |
---|---|
fieldID |
The unique ID assigned to the combobox field. |
items[] |
The item options in the combobox dropdown to display when the user clicks at the combobox field. |
Return value
Integer.
Returns 1 if it succeeds. Returns -1 if an error occurs. Returns -2 if the fieldID is non-existent, illegal, or not of the required type. If any argument's value is null, returns null.
Examples
This example sets the list of items for a combobox form field:
integer li_rtn,li_formid string ls_items1[],ls_items2[] ls_items1[] = {"A", "B", "C"} ls_items2[] = {"Test Item1","Test Item2","Test Item3","Test Item4","Test Item5"} li_formid = rte_1.FormComboBoxInsert(ls_items1[],1,false) li_rtn = rte_1.FormComboBoxSetItems(li_formid,ls_items2[])