Accuracer: The First And Only Cross-Platform BDE Replacement
Client-Server Single-File Embedded Database with SQL for Delphi / C++Builder / Kylix


TDataSet.BeforePost
TDataSet
Top 

Occurs before an application posts changes for the active record to the database or cache.

property BeforePost: TDataSetNotifyEvent;

Description
Write a BeforePost event handler to take specific action before an application posts dataset changes to the database. BeforePost is triggered when an application calls the Post method. Post checks to make sure all required fields are present, then calls BeforePost before posting the record.

An application might use BeforePost to perform validity checks on data changes before posting them to the database. If it encountered a validity problem, it could call Abort to cancel the Post operation.


© AidAim Software Accuracer: Client Server Single-file Bde Replacement Delphi Database Embedded Databas