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

TCustomMaskEdit.ValidationErrorMode

Indicates the action taken when the control value is invalid for its mask.

Declaration

Source position: maskedit.pp line 318

public property TCustomMaskEdit.ValidationErrorMode : TMaskEditValidationErrorMode
  read FValidationErrorMode
  write FValidationErrorMode
  default mvemException;

Description

ValidationErrorMode is a TMaskEditValidationErrorMode property which indicates the action taken when the value for the control is invalid for the mask in the EditMask property.

The default value for the property is mvemException, and causes an exception to be raised when control value is invalid for its mask. Use mvemException to cause the OnValidationError event handler to be signalled for the validation error.

The property value is used in the ValidateEdit method when IsMasked is set to True and the EditText for the control is not valid.

See also

TCustomMaskEdit.OnValidationError

  

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

TCustomMaskEdit.ValidateEdit

  

Validates the value for the edit control when an EditMask has been specified.

TCustomMaskEdit.IsMasked

  

True if a non-empty value has been assigned to EditMask.

TCustomMaskEdit.EditText

  

Value entered in the control and obscured / formatted using the EditMask.

TMaskEditValidationErrorMode

  

Represents the action taken for an error in TMaskEdit validation.


Version 3.2 Generated 2024-02-25 Home