procedure CancelPost;
procedure OnMapEvent(var Value:Variant);
begin
DATASET.Insert; //create new record
DATASET['Field1'].Value := 10;
DATASET.CancelPost; //cancel the creation of a new record
end;
Cancels the creation of a new or edited record from the See "Dataset.Insert" or See "Dataset.Edit" procedure.
If it is a new record it will be lost (not saved), however if you are editing a record then it will revert to its previous values.