RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomAdapterFileField.DoOnValidateValue Method

Validates files uploaded by the end-user.

Pascal
procedure DoOnValidateValue(AValue: IActionFieldValue; var AHandled: Boolean); override;
C++
virtual __fastcall DoOnValidateValue(IActionFieldValue AValue, Boolean AHandled);

DoOnValidateValue overrides TAdapterUpdateField's DoOnValidateValue method. If the OnValidateFiles event handler is not nil (Delphi) or NULL (C++), DoOnValidateValue calls it to validate uploaded files. If the Required property is true, DoOnValidateValues also verifies that 1 of more values have been entered by the end-user. An exception will be raised to indicate a validation error. 

 

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