Datasnap.Provider.TPacketDataSet.HasCurValues

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function HasCurValues: Boolean;

C++

bool __fastcall HasCurValues();

Properties

Type Visibility Source Unit Parent
function public
Datasnap.Provider.pas
Datasnap.Provider.hpp
Datasnap.Provider TPacketDataSet

Description

Indicates whether the CurValue property is available for fields in the packet dataset.

When an error occurs while applying an updated record, resolver components attempt to locate the current record in the underlying database (or the dataset to which updates are applied.) This current record can then be used when trying to determine the cause of the update error. If the current record can be located, HasCurValues returns true and the fields in the packet dataset have their CurValue properties set from this record. If the record can't be located (for example, if another user changed a key field value or deleted the record), then HasCurValues returns false and the CurValue property of packet dataset fields can't be used.

See Also