UniDAC

TMemDataSet.CommitUpdates Method

Clears the cached updates buffer.

Class

TMemDataSet

Syntax

procedure CommitUpdates;

Remarks

Call the CommitUpdates method 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 cache.

CommitUpdates also checks wether there are pending updates in dataset. And if there are, it calls ApplyUpdates.

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.

See Also

© 1997-2024 Devart. All Rights Reserved. Request Support DAC Forum Provide Feedback