EPUB | CHM | PDF

TDataSet.Events.OnDeleting

Top Previous Next

note Since v2.6.0

Occurs after all checks before data deleting are passed but before an application deletes this record from the database. This event allows to cancel record deleting.

Syntax:

type
  TPostDataEvent = procedure(Sender: TObject; var Allow: boolean) of object;
property OnDeleting: TPostDataEvent;

Description:

Use this event if you need to check some custom conditions before delete active record from the database and disable this deleting in some cases. If you'll set Allow parameter value to False DAC for MySQL will not delete this record.

See also: OnPosting, OnInserting properties