Vcl.Mask.TCustomMaskEdit.Validate

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function Validate(const Value: string; var Pos: Integer): Boolean; virtual;

C++

virtual bool __fastcall Validate(const System::UnicodeString Value, int &Pos);

Properties

Type Visibility Source Unit Parent
function protected
Vcl.Mask.pas
Vcl.Mask.hpp
Vcl.Mask TCustomMaskEdit

Description

Validates a specified string against the current mask.

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, and False if it detects an invalid character. If ValidateEdit returns False, it returns the position of the invalid character as the Pos parameter.

See Also