Show: Delphi C++
Using the First and Last Methods
From RAD Studio XE2
Go Up to Understanding datasets Index
Go Up to C++Builder Developer's Guide
For example, the following code moves to the first record in CustTable:
The following code moves to the last record in CustTable:
Note: The Last method raises an exception in unidirectional datasets.
Tip: While there may be programmatic reasons to move to the first or last rows in a dataset without user intervention, you can also enable your users to navigate from record to record using the Navigating and Manipulating Records.