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

# TDataSet.First

Position the dataset on the first record.

## Declaration

Source position: db.pas line 1596

`public procedure TDataSet.First;`

## Description

First positions the dataset on the first record. This action will trigger the TDataset.BeforeScroll and TDataset.AfterScroll events. After the action is completed, the TDataset.BOF property will be True.

## Errors

If the dataset is unidirectional or is closed, an EDatabaseError exception will be raised.

## See also

TDataset.Prior |  | Go to the previous record
TDataset.Last |  | Navigate forward to the last record
TDataset.Next |  | Go to the next record in the dataset.
TDataset.BOF |  | Is the cursor at the beginning of the data (on the first record)
TDataset.BeforeScroll |  | Event triggered before the cursor changes position.
TDataset.AfterScroll |  | Event triggered after the cursor has changed position.

Documentation generated on: Feb 26 2014