EPUB | CHM | PDF

TDataSet.Events.AfterInsert

Top Previous Next

Occurs after an application inserts a new record.

Syntax:

property AfterInsert: TDataSetNotifyEvent;

Description:

Write an AfterInsert event handler to take specific action immediately after an application inserts a record. The Insert and Append methods generate an AfterInsert event after inserting or appending a new record.

Example:

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

procedure TForm1.PSQLTable1AfterInsert(DataSet: TDataSet);
begin
   StatusBar1.SimpleText := 'Inserting new record';
end;