CRDataset::move
Previous  Index  Next

int move(long distance);

Return Value

The actual number of moved records. In most cases, value is the absolute value of distance, but if the move encounters the beginning-of-file or end-of-file before moving distance records, result will be less than the absolute value of distance.

Parameters

distance
The number of rows to move forward or backward. Positive values move forward, toward the end of the dataset. Negative values move backward, toward the beginning.  

Description

Call this member function to move the current record pointer within the dataset, either forward or backward.

See Also

CRDataset::prev, CRDataset::next, CRDataset::moveTo, CRDataset::recordNo


CRDataset | Classes | OCL | Index