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:

 

[label]

{object}.GetSel

[GIVING {return}] USING [*Index=]{index}

 

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:

  1. Upon completion, {return} will contain a zero if the item is not selected. Any other positive value indicates the item is selected.

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

  3. If {return} is too small to contain the value, the OVER Condition Flag is set.

  4. The EOS Condition Flag is always cleared.

 

 

See Also: Method Syntax, DATALIST Methods

 



PL/B Language Reference GetNextSel Method (DATALIST) GetSelCount Method (DATALIST)