Bde.DBTables.TBDEDataSet.CommitUpdates

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure CommitUpdates;

C++

void __fastcall CommitUpdates();

Properties

Type Visibility Source Unit Parent
procedure
function
public
Bde.DBTables.pas
Bde.DBTables.hpp
Bde.DBTables TBDEDataSet

Description

Clears the cached updates buffer.

Call CommitUpdates to clear the cached updates buffer after both a successful call to ApplyUpdates and a database component's Commit method. Clearing the cache after applying updates ensures that the cache is empty except for records that could not be processed and were skipped by the OnUpdateRecord or OnUpdateError event handlers. An application can attempt to modify the records still in the cache.

Record modifications made after a call to CommitUpdates repopulate the cached update buffer and require a subsequent call to ApplyUpdates to move them to the database.

Note: Applications that use a database component's ApplyUpdates method to apply and commit pending updates for all datasets associated with the database component do not need to call CommitUpdates.

See Also