RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomMaskEdit.Validate Method

Validates a specified string against the current mask.

Pascal
function Validate(const Value: string; var Pos: Integer): Boolean; virtual;
C++
virtual __fastcall Boolean Validate(const AnsiString Value, int Pos);

The ValidateEdit method calls Validate to perform the actual validation of the current text against the edit mask. It returns true if the string specified by Value is consistent with the edit mask, false if it detects an invalid character. If ValidateEdit returns false, it returns the position of the invalid character as the Pos parameter. 

 

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