RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
WebAdapt.TValidateAdapterFieldEvent Type

TValidateAdapterFieldEvent is the type for event handlers that validate the values supplied for adapter fields.

Pascal
TValidateAdapterFieldEvent = procedure (Sender: TObject; Value: Variant; var Handled: Boolean) of object;
C++
(Sender: TObject; Value: Variant; var Handled: Boolean) ( TValidateAdapterFieldEvent)();

TValidateAdapterFieldEvent is the type for event handlers that check whether the value supplied for an adapter field is valid. 

ASender is the adapter component that needs to check the field value. 

Value is the value supplied for the adapter field. (The particular field to which this value is assigned is determined by the specific event that uses this type for its event handler.) 

Handled returns true if the event handler found Value to be valid. If Value is not valid, the event handler raises an exception. If the event handler can't determine whether Value is valid or invalid, Handled returns false. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!