[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'DB' (#fcl)

TDataSet.Next

Go to the next record in the dataset.

Declaration

Source position: db.pas line 1711

public procedure TDataSet.Next;

Description

Next positions the cursor on the next record in the dataset. 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 last known record (EOF 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.Prior

  

Go to the previous record

TDataset.Last

  

Navigate forward to the last record

TDataset.BeforeScroll

  

Event triggered before the cursor changes position.

TDataset.AfterScroll

  

Event triggered after the cursor has changed position.

TDataset.EOF

  

Indicates whether the last record has been reached.


Documentation generated on: May 14 2021