DB.TField.OldValue

From RAD Studio VCL Reference
Jump to: navigation, search

Contents

Delphi Information

From DB.pas

	property OldValue: Variant read GetOldValue;


Unit: DB

Type: property

Visibility: public

Member Of: TField

C++ Information

From DB.hpp

	__property System::Variant OldValue = {read=GetOldValue};


Unit: DB

Type: property

Visibility: public

Member Of: TField

Description

Represents the original value of the field (as a Variant).


Read the OldValue property to examine or retrieve the original value of the field that was obtained from the dataset before any edits were posted. For example, in Delphi the following line replaces current pending changes with a field's original value:

NewValue :=OldValue;

Once records are applied successfully to the database, the old field value cannot be retrieved.

Note:  the OldValue property is only usable when the data is accessed using a TClientDataSet component or cached updates is enabled.

See Also

Personal tools
Translations
Newest Version