TCustomMaskEdit.ValidateEdit procedure
Validates the value for the edit control when an EditMask has been specified.
Declaration
procedure ValidateEdit; virtualDescription
ValidateEdit is a procedure used to validate the text for the edit
control using the assigned mask. ValidateEdit uses the value in
IsMasked to determine if a mask has been assigned in the control.
When IsMasked is True, the value for the control is validated. The
TextIsValid method is called with the value from the
Text property. If the Text is not valid, an
EDBEditError exception is raised for the error condition.
When IsMasked is False, no actions are performed in the method.
ValidateEdit is used in the implementation of the DoExit method.
Errors
Raises an
EDBEditError if the
Text for the control is
not valid. Raised with the message in
SMaskEditNoMatch.
See also
- IsMasked
- DoExit
- ValidateEdit
- Text
- EDBEditError
- SMaskEditNoMatch
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
