Datasnap.DBClient.TCustomClientDataSet.Cancel

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure Cancel; override;

C++

virtual void __fastcall Cancel();

Properties

Type Visibility Source Unit Parent
procedure
function
public
Datasnap.DBClient.pas
Datasnap.DBClient.hpp
Datasnap.DBClient TCustomClientDataSet

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