[Overview][Constants][Types][Classes][Procedures and functions][Index] |
Cancel the current editing operation
Source position: db.pas line 1290
public procedure TDataSet.Cancel; virtual; |
Cancel cancels the current editing operation and sets the dataset again in browse mode. This operation triggers the TDataset.OnBeforeCancel and TDataset.OnAfterCancel events. If the dataset wa sin insert mode, then the TDataset.OnBeforeScroll and TDataset.OnAfterScroll events are triggered after and respectively before the OnBeforeCancel and OnAfterCancel 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. |
lazarus-ccr.sourceforge.net |