Data.DB.TField.OldValue

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property OldValue: Variant read GetOldValue;

C++

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

Properties

Type Visibility Source Unit Parent
property public
Data.DB.pas
Data.DB.hpp
Data.DB 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