RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TBaseDataSetAdapterField.ImplCheckOrigValue Method

Provides the underlying implementation for the CheckOrigValue method.

Pascal
procedure ImplCheckOrigValue(AActionRequest: IActionRequest; AFieldIndex: Integer); virtual;
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 field values that AActionRequest maintains. 

In TBaseDataSetAdapter, ImplCheckOrigValue does nothing (acting as if the current value always matches the original value). Descendant classes override this method if they can compare the current field value with the original values stored in the action request. 

 

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