Unit 'DB' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#fcl]

TDataSet.Prior

Go to the previous record.

Declaration

Source position: db.pas line 1935

public procedure TDataSet.Prior;

Description

Prior moves the cursor to the previous record. It is equivalent to a MoveBy(-1) operation. Calling this method triggers the TDataset.BeforeScroll and TDataset.AfterScroll events. If the dataset is located on the first record, (BOF is true) then no action is performed, and the events are not triggered.

Errors

Calling this method on a closed dataset will result in an EDatabaseError exception.

See also

TDataset.MoveBy

  

Move the cursor position.

TDataset.Next

  

Go to the next record in the dataset.

TDataset.First

  

Position the dataset on the first record.

TDataset.BeforeScroll

  

Event triggered before the cursor changes position.

TDataset.AfterScroll

  

Event triggered after the cursor has changed position.

TDataset.BOF

  

Is the cursor at the beginning of the data (on the first record).


Documentation generated on: Nov 23 2024