FormComboBoxSetItems
PowerScript function
Description
Sets the list of items to display for the dropdown of a combobox
field.
Applies to
Syntax
|
1 |
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 |
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:
|
1 2 3 4 5 6 7 |
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[]) |
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest