Name

Recordset.row — get the current row index

Synopsis

int Recordset.row ( );  

Description

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);

See Also

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