Positions the cursor on a record relative to the active record in the dataset. Syntax: function MoveBy(Distance: Integer): Integer; Description: Call MoveBy to position the cursor on a record relative to the active record in the dataset. Distance indicates the number of records to move. A positive value for Distance indicates forward progress through the dataset, while a negative value indicates backward progress. For example, the following statement moves backward through the dataset by 10 records: MoveBy(-10); MoveBy posts any changes to the active record and:
See also: Example: MoveBy,SelectedIndex,Tag |