EPUB | CHM | PDF

TDataSet.Events.AfterPost

Top Previous Next

Occurs after an application writes the active record to the database or cache returns to browse state.

Syntax:

property AfterPost: TDataSetNotifyEvent;

Description:

Write an AfterPost event handler to take specific action immediately after an application posts a change to the active record. AfterPost is called after a modification, deletion, or insertion is made to a record.

Example:

This example updates the form's status bar with a message when an AfterPost event occurs.

procedure TForm1.MySQLTable1AfterPost(DataSet: TDataSet);
begin
  StatusBar1.SimpleText := 'Record changes complete';
end;