GetRowCount Function (Table)

Class

Table.

Action

Returns the number of rows in a table.

Availability

This functionality is supported only if you are using the Classic Agent.

Syntax

iNumRows = table.GetRowCount ([bAllRows] )
Variable Description
iNumRows The number of rows. INTEGER.
bAllRows Optional: Scrolls to get all rows (see note below). BOOLEAN. Default is FALSE.

Notes

To ensure that you get an accurate row count, you can specify GetRowCount(TRUE), which will cause the application to scroll to the bottom of the table, fetching all rows, and reporting the number of rows seen. This can take a lot of time, so only use this optional argument when needed.

Example

INTEGER iRows
iRows = Cust.CustTable.GetRowCount()