GetSel Method (DATALIST)
PLBCMP GUI Only
The GetSel method determines whether a specified item in a DATALIST object is selected. The method uses the following format:
|
|
|
|
Where:
label
Optional. A Program Execution Label.
object
Required. A DATALIST object that is accessed.
return
Optional. A Numeric Variable that returns the zero-based selected item indication.
index
Optional. A Numeric Variable that specifies the item within the object.
Flags Affected: EOS, OVER, ZERO
Note the following:
Upon completion, {return} will contain a zero if the item is not selected. Any other positive value indicates the item is selected.
If the value returned is zero, the ZERO Condition Flag is set.
If {return} is too small to contain the value, the OVER Condition Flag is set.
The EOS Condition Flag is always cleared.
See Also: Method Syntax, DATALIST Methods
![]() |