Top Previous Next

Indicates or sets the current record number in the dataset.


property RecNo : integer;


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() methods.

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

See also: RecordCount property, First(), Last(), Next(), Prior(), MoveBy() methods