Delphi Database, Delphi Components from ComponentAce
Products Download Order Contact us

Positions the cursor to the first record in the dataset.

procedure First;

Call First to position the cursor to the first record in the dataset and make it the active one. First posts any changes to the active record and:

·Clears the record buffers.  
·Sets the cursor to the beginning of the dataset file.  
·Fetches the first record, positions the cursor on it, and makes it the active record.  
·Fetches any additional records required for display, such as those needed to fill out a grid control.  
·Sets the Bof property to True.  
·Broadcasts the record change so that data controls and linked detail sets can update.  

TDataSet uses internal, protected methods to position the database cursor and to fetch additional records required for display. In TDataSet, these internal methods are abstract. Descendant classes implement these methods to enable the First method to work.
        © 2003 - 2023 ComponentAce  | .net zip component | barcode for .net | delphi zip component | delphi database Nov 29, 2023