GetItemData Method (COMBOBOX / DATALIST)


PLBCMP GUI Only

 

The GetItemData method retrieves the user-defined value for a specified item in a DATALIST or COMBOBOX object. The method uses the following format:

 

[label]

{object}.GetItemData

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

 

Where:

label

Optional. A Program Execution Label.

object

Required. A DATALIST or COMBOBOX object that is accessed.

return

Optional. A Numeric Variable that returns the item's user-defined value.

index

Optional. A Numeric Variable that specifies the zero-based item within the object.

Flags Affected: EOS, OVER, ZERO

Note the following:

  1. Upon completion, {return} will contain the user parameter value of the item.

  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, COMBOBOX Methods

 



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