RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TBaseDataSetAdapterInputField.ImplValidateValue Method

Provides the underlying implementation for the ValidateValue method.

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

The ValidateValue method calls ImplValidateValue to validate a proposed new field value from the current request. This method raises an exception if the proposed new value is not valid. 

AActionRequest is the interface of the action request object. ImplValidateValue uses this interface to obtain the new value for this field. 

AFieldIndex is the index of this field in the list of fields that the action request object maintains. 

ImplValidateValue looks up the appropriate value from the request. It then generates an OnValidateValue event, supplying the value from the current request and a reference to the dataset field that is associated with this adapter field. 

 

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