EPUB | CHM | PDF

TPSQLDataset.Properties.RecNo

Top Previous Next

Indicates the current record in the dataset.

Syntax:

property RecNo: Longint;

Description:

Examine RecNo to determine the record number of the current record in the dataset. Applications might use this property with RecordCount to iterate through all the records in a dataset, though typically record iteration is handled with calls to First, Last, MoveBy, Next, and Prior.

If accessing tables, RecNo can be set to a specific record number to position the cursor on that record, beginning from 0.