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


TDataSet.Cancel
TDataSet
Top 

Cancels modifications to the active record if those changes are not yet posted.

procedure Cancel; virtual;

Description
Call Cancel to undo modifications made to one or more fields belonging to the active record. As long as those changes are not already posted to the database, Cancel returns the record to its previous state, and sets the dataset state to dsBrowse.

Typically Cancel is used to back out of changes in response to user request, or in field validation routines that back out illegal field values. The TDBNavigator object contains a Cancel button that calls Cancel.


© AidAim Software Accuracer: Client-server Database Single-file Database Delphi Database Embedded Databas