RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TBaseDataSetAdapterField.CheckOrigValue Method

Ensures that the current value of this field is the same as the original value.

Pascal
procedure CheckOrigValue(AActionRequest: IActionRequest; AFieldIndex: Integer);
C++
__fastcall CheckOrigValue(IActionRequest AActionRequest, int AFieldIndex);

Dataset adapter fields call CheckOrigValue internally when the field value must be the same as the original field value. The original value is stored as a hidden field on HTML forms when the FieldFlags property includes ffInOrigValues. If the current value differs from the original value, CheckOrigValue raises an exception. 

AActionRequest is 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. 

CheckOrigValue calls the ImplCheckOrigValue method, which performs the actual checking. 

 

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