Show: Delphi C++
Display Preferences

Data.DB.TDataSet.BeforePost

From XE2 API Documentation
Jump to: navigation, search

Delphi

property BeforePost: TDataSetNotifyEvent read FBeforePost write FBeforePost;

C++

__property TDataSetNotifyEvent BeforePost = {read=FBeforePost, write=FBeforePost};

Contents

Properties

Type Visibility Source Unit Parent
event public
Data.DB.pas
Data.DB.hpp
Data.DB TDataSet

Description

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

Write a BeforePost event handler to take specific action before an application posts dataset changes. 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 committing them. If it encountered a validity problem, it could call Abort to cancel the Post operation (Delphi) or throw an exception (C++).

BeforePost is an event handler of type Data.DB.TDataSetNotifyEvent.

See Also

Code Examples

Personal tools
Previous Versions
Translations