Skip to content

Flow documentation · legacy product

Dataset.CancelPost ​

Declaration ​

procedure CancelPost;

Example ​

pascal
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;

Description ​

Cancels the creation of a new or edited record from the Dataset.Insert or 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.