procedure Edit;
procedure OnMapEvent(var Value:Variant);
begin
if DATASET.Find('Field1', '123') then
begin
DATASET.Edit;
DATASET['Field1'].Value := 10;
DATASET.Post; //save the record
end;
end;
Sets the current record into edit mode. The record can then have its field values modified.
You do not need to call Edit for datasets from a Data Definition (The datasets showing in the source or destination trees). These are managed automatically by the map. You would only use this if working outside of the normal Program Flow (eg editing record that are already processed) or working with See "Global Datasets"
When you are finishing modifying the record you should call See "Dataset.Post".