EPUB | CHM | PDF

TDataSet.Events.OnPosting

Top Previous Next

note Since v2.6.0

Occurs after all checks before post are passed but before an application posts changes for the active record to the database. This event allows to cancel data modification.

Syntax:

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

Description:

Use this event if you need to check some custom conditions before post data changes and disable post data changes. If you'll set Allow parameter value to False DAC for MySQL will not post data changes to server.

See also: OnInserting, OnDeleting properties