| TMaskEnhErrorEvent Type |
Unit
MaskEnh
Declaration
TMaskEnhErrorEvent = procedure( Sender: TMaskEnh; ErrCode: integer ) of object;
Description
The mask processor TMaskEnh error event. Define code here to override
the default error processing performed by the mask processor. The ErrCode
variable returns one of the following constants...
E_MASKENH_CHAR_INVALID Insert/Replace character invalid for position
E_MASKENH_TRUNCATED Input string was too long for mask
E_MASKENH_INVALID Input does not fit mask requirements
E_MASKENH_INVALIDTRUNC Input string was truncated due to mask mismatch
E_MASKENH_CHAR_TRUNCATED Insert/Replace attempted beyond end of mask
but only optional characters remain to be filled.
Note that E_MASKENH_CHAR_* errors relate to character-by-character validation,
while the other error codes relate to errors detected when validating an
input string as a whole. The char-by-char errors may occur multiple times
while processing an input string, whereas the other errors only occur once,
when validating after the input string has been assigned.