Sign in Join
FPDoc Onlineexperiment

TCustomMaskEdit.ValidationErrorMode property

Member of TCustomMaskEditpublicIn unit MaskEdit

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

Declaration

pascal
property 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

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.