GetCurSel Method (COMBOBOX)
PLBCMP GUI Only
The GetCurSel method retrieves the index for the currently selected item in a COMBOBOX object. The method uses the following format:
|
|
|
|
Where:
label
Optional. A Program Execution Label.
object
Required. A COMBOBOX object that is accessed.
return
Optional. A Numeric Variable that returns zero-based index of the first selected item.
Flags Affected: EOS, OVER, ZERO
Note the following:
Upon completion, {return} will contain the zero-based index of the currently selected item in the list.
If no item is selected, {return} will have a value of -1.
If the value returned is zero, the ZERO Condition Flag is set.
If {return} is too small to contain the item number, the OVER Condition Flag is set.
The EOS Condition Flag is always cleared.
See Also: Method Syntax, COMBOBOX Methods
![]() |