Data.SqlExpr.TCustomSQLDataSet.LocateRecord
| [–] Properties | |
|---|---|
| Type: function | |
| Visibility: protected | |
| Source: Data.SqlExpr.pas Data.SqlExpr.hpp
| |
| Unit: Data.SqlExpr | |
| Parent: TCustomSQLDataSet | |
Delphi
function LocateRecord(const KeyFields: string; const KeyValues: Variant;
Options: TLocateOptions; SyncCursor: Boolean): Boolean;
C++
bool __fastcall LocateRecord(const System::UnicodeString KeyFields, const System::Variant &KeyValues, Data::Db::TLocateOptions Options, bool SyncCursor);
Description
Implements a virtual method for searching a dataset for a specified record and making it the active record.
LocateRecord is a protected method called by Locate to search a dataset for a specified record and make it the active record.
Note: Do not call LocateRecord directly. Instead, call the Locate method.