[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
Cancel the current editing operation
Source position: db.pas line 1621
public procedure TDataSet.Cancel; virtual; |
Cancel cancels the current editing operation and sets the dataset again in browse mode. This operation triggers the TDataset.BeforeCancel and TDataset.AfterCancel events. If the dataset wa sin insert mode, then the TDataset.BeforeScroll and TDataset.AfterScroll events are triggered after and respectively before the BeforeCancel and AfterCancel events.
If the dataset was not in one of the editing modes when Cancel is called, then nothing will happen.
|
Current operational state of the dataset |
|
|
Append a new record to the data |
|
|
Insert a new record at the current position. |
|
|
Set the dataset in editing mode. |