RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
DBAdapt.TDataAdapterFieldValidateValueEvent Type

TDataAdapterFieldValidateValueEvent is the type for event handlers that validate the value assigned to a dataset adapter field.

Pascal
TDataAdapterFieldValidateValueEvent = procedure (Sender: TObject; Field: TField; Value: IActionFieldValue; var Handled: Boolean) of object;
C++
(Sender: TObject; Field: TField; Value: IActionFieldValue; var Handled: Boolean) ( TDataAdapterFieldValidateValueEvent)();

TDataAdapterFieldValidateValueEvent is the type for event handlers that let you validate a value before it is assigned to a dataset adapter field. 

Sender is the dataset adapter field component. 

Field is the field component that this adapter field represents. 

Value is the interface for the value or set of values to validate. It represents the value that the current request supplies. 

Handled returns an indication of whether the event handler validated the new Value. If Handled returns true, the new value is considered valid, and the adapter then updates this field's value. Setting Handled to false indicates that the new value has not been validated one way or the other, not that the value has been found invalid. To indicate that the value is invalid, the event handler should raise an exception. 

 

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