GUI Help > Special > selectedItem
selectedItem
int item=selectedItem(handle gadget)
Description: Returns the index of the currently selected item in a listbox or combobox.
Return Value: Index of currently selected item or -1 if no item is selected.
Parameters:
gadget | Handle to a listbox or combobox gadget
Remarks:
See Also:
Example: (Note: You will need to include the GUI constants file for this example to work)