Unit 'DB' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#fcl]

TDataSet.BeforeCancel

Event triggered before a Cancel operation.

Declaration

Source position: db.pas line 1978

public property TDataSet.BeforeCancel : TDataSetNotifyEvent
  read FBeforeCancel
  write FBeforeCancel;

Description

BeforeCancel is triggered at the start of the TDataset.Cancel operation, when the state is still one of the editing states (dsEdit,dsInsert). The event handler can be used to abort the cancel operation: if an exception is raised during the event handler, then the cancel operation stops. If the dataset was not in one of the editing states when the Cancel method was called, then the event is not triggered.

See also

TDataset.AfterCancel

  

Event triggered after a Cancel operation.

TDataset.Cancel

  

Cancel the current editing operation.

TDataset.State

  

Current operational state of the dataset.


Documentation generated on: Oct 27 2024