Appearance
Dataset.Find
Declaration
function Find(KeyField, KeyValue : string) : boolean
Example
pascal
procedure OnMapEvent(var Value:Variant);
begin
if DATASET.Find('Field1', '123') then //search for a record where Field1 = 123
LogInfo('Record found where Field1 equals 123');
end;Description
Searches the dataset for a record where KeyField contains the KeyValue value. If found, the record is made the active record. Returns true if a record is found, otherwise false.
The found record becomes the active record. You can then reference that record's field values through the Field objects.