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:
|
|
|
|
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:
Upon completion, {return} will contain the user parameter value of the item.
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, COMBOBOX Methods
![]() |