ui.Combobox.GetIndexOf()

The GetIndexOf() method is used to return the position of the item in list. The method needs an argument specifying the item name and returns 0 if the item with the specified name does not exist:

 

CALL cbx.GetIndexOf("item1") RETURNING i