Name

Recordset.rows — get the number of rows in the recordset

Synopsis

int Recordset.rows ( );  

Description

Returns the number of rows in the recordset. For some data sources the only way that RSO can do this is to loop through the rows and count them, and so you should avoid using this function if possible.

Example 74. Recordset.rows Example

// Get the number of rows, the (possibly) fast
int numrows = rs.rows();

See Also

Data sources and database access in RSP is explained in the section called “Accessing Databases”