GetCount Method (COMBOBOX / DATALIST)
PLBCMP GUI Only
The GetCount method retrieves the number of items 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 number of items in the list.
Flags Affected: EOS, OVER, ZERO
Note the following:
If the method is successful, the count of items in the object is returned. If the method is not successful, {return} will contain a -1.
If the value returned is zero, the ZERO Condition Flag is set.
If {return} is too small to contain the count, the OVER Condition Flag is set.
The EOS Condition Flag is always cleared.
See Also: Method Syntax, DATALIST Methods, COMBOBOX Methods
![]() |