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:

 

[label]

{object}.GetCount

[GIVING {return}]

 

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:

  1. 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.

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

  3. If {return} is too small to contain the count, 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 GetCaretIndex Method (DATALIST) GetCurSel Method (COMBOBOX)