GetCountPerPage Method (LISTVIEW)


PLBCMP GUI Only

 

The GetCountPerPage method retrieves the number of items that can fit vertically in the visible area of the LISTVIEW object. The method uses the following format:

 

[label]

{object}.GetCountPerPage

[GIVING {return}]

 

Where:

label

Optional. A Program Execution Label.

object

Required. A LISTVIEW object that is accessed.

return

Optional. A Numeric Variable that returns the number of items.

Flags Affected: EOS, OVER, ZERO

Note the following:

  1. Upon completion, {return} will contain the number of items that can fit within the visible area of the LISTVIEW object when in list or report view.

  2. If the LISTVIEW is in icon or small icon view, {return} will contain a count of all the items in the object.

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

  4. If {return} is too small to contain the item count, the OVER Condition Flag is set.

  5. The EOS Condition Flag is always cleared.

  6. This method is not available when using the PL/B Web Server.

 

 

See Also: Method Syntax, LISTVIEW Methods

 



PL/B Language Reference GetColumnWidths Method (LISTVIEW GetExtendedStyle Method (LISTVIEW)