- Documentation
- Client functions
- guiComboBoxGetSelected
Function
guiComboBoxGetSelected
Returns the selected item index (from 0), or -1 when nothing is selected.
Syntax
int guiComboBoxGetSelected(gui-combobox comboBox)Arguments
comboBoxgui-combobox- The list.
Returns
Item index.
Example
if guiComboBoxGetSelected(cityCombo) == -1 then
guiNotify("Wybierz miasto", "warning")
end