[Overview][Constants][Types][Classes][Procedures and functions][Index] | Reference for unit 'MaskEdit' (#lcl)

# TCustomMaskEdit.OnValidationError

Event handler signalled when the value for the masked edit control is invalid.

## Declaration

Source position: maskedit.pp line 321

`public property TCustomMaskEdit.OnValidationError : TNotifyEvent read FOnValidationError write FOnValidationError;`

## Description

OnValidationError is a TNotifyEvent property with the event handler signalled when the value for the masked edit control is invalid for its EditMask. OnValidationError is signalled (when assigned) from the ValidateEdit method and occurs when focus is removed from the control and ValidationErrorMode is set mvemEvent. An application can implement and assign a handler to perform actions needed to respond to an invalid value entered in the control.

## See also

TCustomMaskEdit.ValidateEdit |  | Validates the value for the edit control when an EditMask has been specified.
TCustomMaskEdit.ValidationErrorMode |  | Indicates the action taken when the control value is invalid for its mask.
TCustomMaskEdit.IsMasked |  | True if a non-empty value has been assigned to EditMask.
TCustomMaskEdit.EditMask |  | Contains the mask characters classes and literals used to format/obscure the value for the control.
TCustomMaskEdit.EditText |  | Value entered in the control and obscured / formatted using the EditMask.
TMaskEditValidationErrorMode |  | Represents the action taken for an error in TMaskEdit validation.
TNotifyEvent