Excludes features that don't need to be included to the TMemDataSet.Locate method of TDataSet by the specified field names.
function LocateEx(const KeyFields: string; const KeyValues: variant; Options: TLocateExOptions): boolean; overload;
Call the LocateEx method when you need some features not to be included to the TMemDataSet.Locate method of TDataSet.
LocateEx returns True if it finds a matching record, and makes that record the current one. Otherwise LocateEx returns False.
The LocateEx function works faster when dataset is locally sorted on the KeyFields fields. Local dataset sorting can be set with the TMemDataSet.IndexFieldNames property.
Note: Please add the MemData unit to the "uses" list to use the TLocalExOption enumeration.