Recordset.row — get the current row index
int Recordset.row
( |
); |
Returns the current row number as a zero based index. If the cursor is after the last row then -1 is returned.
Example 73. Recordset.row Example
// Get the number of rows, the slow way
int numrows = 0;
while(!rs.eof())
{
numrows = rs.row() + 1;
rs.next();
}
rs.goto(0);
Data sources and database access in RSP is explained in the section called “Accessing Databases”