Purpose
Sets the current row cursor to the specified row.
Syntax
BOOL SetCurrentRow(int nRow);
Return Value
TRUE if cursor is successfully set. FALSE otherwise.
Description
The iterator operator reads the next row and stores it as the current row. Returns FALSE if the end Parameters
nRow: The row number, beginning from 0.
Description
Note that the member functions operator(), RemoveRow, AppendEmptyRow and InsertEmptyRow also affects that current row setting.

Assuming ATableParam is a CRfcTableParam object and its row structure contains fields all of type TYPC, the following code sets some fields of the first row of the table.
ATableParam.SetCurrentRow(0); ATableParam.Field(0) = value1; // sets cell at row 0, column 0, // equivalent to // ATableParam.Cell(0,0) = value1 ATableParam.Field(1) = value2; // sets cell at row 0, column 1, // equivalent to // ATableParam.Cell(0,1) = value2;
|
Related Information
operator() RemoveRow AppendEmptyRow InsertEmptyRow Field (Constant Table, by Index/Column Name Field (Constant Table, by Index/Column Number) Cell (by Row/Column Name) Cell (by Row/Column Number)