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

# TMaskEditValidationErrorMode

Represents the action taken for an error in TMaskEdit validation.

## Declaration

Source position: maskedit.pp line 148

`type TMaskEditValidationErrorMode = (`
`mvemException,` |  | Causes an exception to be raised for a validation error in TMaskEdit.
`mvemEvent` |  | Causes the OnValidationError event handler to be signalled for a validation error in TMaskEdit.
`);`

## Description

TMaskEditValidationErrorMode is an enumerated type with values that represent the action taken when a error occurs while validating the value in TCustomMaskEdit and descendants. It is the type used to implement the ValidationErrorMode property in TCustomMaskEdit.

## See also

TCustomMaskEdit.ValidationErrorMode |  | Indicates the action taken when the control value is invalid for its mask.
TCustomMaskEdit.OnValidationError |  | Event handler signalled when the value for the masked edit control is invalid.