RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomADODataSet.AfterPost Event

Occurs after an application writes the active record to the database or change log and returns to browse state.

Pascal
property AfterPost: TDataSetNotifyEvent;
C++
__property TDataSetNotifyEvent AfterPost;

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 or insertion is made to a record.  

Delphi Examples: 

 

{
This example updates the form’s status bar with a message
when an AfterPost event occurs.
} 
procedure TForm1.ClientDataSet1AfterPost(DataSet: TDataSet);
begin
   Memo2.Lines.Add('Before posting a record');
end;

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!