Datasnap.DBClient.TCustomClientDataSet.Cancel

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type:
procedure
function
Visibility: public
Source:
Datasnap.DBClient.pas
Datasnap.DBClient.hpp
Unit: Datasnap.DBClient
Parent: TCustomClientDataSet

Delphi

procedure Cancel; override;

C++

virtual void __fastcall Cancel();

Description

Cancels unposted changes to the current record.

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

Note: Do not confuse Cancel with the RevertRecord method, which also backs out changes to the current record. Cancel backs out unposted changes while RevertRecord removes changes that have already been posted to the change log.

See Also