OpalAddList

function OpalAddList(window_ref:integer, widget_ref:integer, txt:string) : integer

Adds a new choice to a list; txt specifies the name of the new option. If the widget referenced is not a list or a drop-down, then this command is ignored. Returns 0 as the reference of the new list item, or -1 if failed.


window_ref:integer = ref of the window that contains the list widget
widget_ref:integer = ref of the list widget
txt:string = name of the new option
This function returns an integer