RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomDataSetAdapterField.ImplCheckOrigValue Method

Provides the underlying implementation for the CheckOrigValue method.

Pascal
procedure ImplCheckOrigValue(AActionRequest: IActionRequest; AFieldIndex: Integer); override;
C++
virtual __fastcall ImplCheckOrigValue(IActionRequest AActionRequest, int AFieldIndex);

The CheckOrigValue method calls ImplCheckOrigValue to raise an exception if the current value of this field is not the same as the original value. 

AActionRequest is interface of the action request object. ImplCheckOrigValue can use this interface to obtain information about the current request (such as the value of the hidden field that contains the original value). 

AFieldIndex is the index of this field in the set of original field values that AActionRequest maintains. 

ImplCheckOrigValue fetches the original value for this field from AActionRequest and compares it to the value of the associated field object. If the two values differ, or if this object is unable to locate the associated dataset field, ImplCheckOrigValue raises an exception. If the two values match, or if AActionRequest does not include an original value for this field, ImplCheckOrigValue does not raise an exception. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!