RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomAdapterImageField.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 OnValidateFile event handler is not nil (Delphi) or NULL (C++), DoOnValidateValue calls it to validate an uploaded file. DoOnValidateValues also validates that not more than one image file was uploaded and, if the required property is true, that a single file was uploaded. An exception is raised to indicate a validation error. 

 

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