RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TPacketDataSet.HasCurValues Method

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

Pascal
function HasCurValues: Boolean;
C++
__fastcall Boolean HasCurValues();

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. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!