Show: Delphi C++
Display Preferences

Data.DB.TDataSet.Post

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure Post; virtual;

C++

virtual void __fastcall Post();

Properties

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

Description

Implements a virtual method to write a modified record to the database or change log.

TDataSet implements a virtual method to write a modified record to the database or change log. Dataset methods that change the dataset state, such as Edit, Insert, or Append, or that move from one record to another, such as First, Last, Next, and Prior automatically call Post.

Different types of datasets handle posting differently:

ADO and InterBaseExpress datasets post records directly to the database server.

Client datasets post records to an internal change log until they are applied to the database by calling ApplyUpdates or merged with the client dataset's data by calling MergeChangeLog.

Unidirectional datasets are read-only and do not post records at all.

Designers of custom datasets can choose whether to implement Post by writing records to the database server or to an internal change log.

See Also



Code Examples

Personal tools
In Other Languages
Previous Versions
Assistance