IUiDataSet.MoveBy

Syntax

MoveBy(Value: Integer): Integer;

Parameters

Value. Number of records by which the cursor is moved.

Description

The MoveBy method moves the cursor in the data source and returns number of records on which the cursor has moved.

Comments

If the Value parameter exceeds 0, the cursor moves forward, if it is under 0, the cursor moves backward. On reaching the end or beginning of the data source the cursor stops. In this case the IUiDataSet.Bof or IUiDataSet.Eof properties are set to True, and the MoveBy method returns the value that is less than in the Value parameter.

See also:

IUiDataSet