RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TBaseProvider.LocateRecord Method

Positions a data set on the record that corresponds to the current update in a specified delta packet.

Pascal
procedure LocateRecord(Source: TDataSet; Delta: TDataSet); virtual;
C++
virtual __fastcall LocateRecord(TDataSet Source, TDataSet Delta);

LocateRecord is called indirectly by the RowRequest method to locate a record before fetching information about a specified record. The Source parameter is the dataset containing current record values. The Delta parameter is a delta packet that identifies the desired type of information and information identifying the desired record. 

As implemented in TBaseProvider, LocateRecord does nothing. Descendants override this method to locate the specified record in Source and navigate to it. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!