RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TBaseDataSetAdapterField.ImplCheckValueChange Method

Provides the underlying implementation for the CheckValueChange method.

Pascal
function ImplCheckValueChange(AActionRequest: IActionRequest; AFieldIndex: Integer): Boolean; virtual;
C++
virtual __fastcall Boolean ImplCheckValueChange(IActionRequest AActionRequest, int AFieldIndex);

The CheckValueChange method calls ImplCheckValueChange to determine whether the value of this adapter field has changed from the value it held when building the form from which the current request originates. 

AActionRequest is the interface of the action request object. CheckOrigValue 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. 

ImplCheckValueChange returns true if the value has changed. In TBaseDataSetAdapterField, ImplCheckValueChange always returns false, indicating no change to the field 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!