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:

 

[label]

{object}.GetCurSel

[GIVING {return}]

 

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:

  1. Upon completion, {return} will contain the zero-based index of the currently selected item in the list.

  2. If no item is selected, {return} will have a value of -1.

  3. If the value returned is zero, the ZERO Condition Flag is set.

  4. If {return} is too small to contain the item number, the OVER Condition Flag is set.

  5. The EOS Condition Flag is always cleared.

 

 

See Also: Method Syntax, COMBOBOX Methods

 



PL/B Language Reference GetCount Method (COMBOBOX / DATALIST) GetFirstSel Method (DATALIST)