Hide

SftMask/OCX 7.0 - ActiveX Masked Edit Control

Display
Print

ValidationError Event, SftMask Object

Invalid input is detected, based on the Mask property.

Syntax

VB.NETPrivate Sub object_ValidationError(ByVal sender As Object, ByVal e As EventArgumentType) Handles object.ValidationError
VBPrivate Sub object_ValidationError(ByVal Text As String, ByVal Failure As SftMaskFailureConstants, ByVal KeyAscii As Integer, ByVal InvalidPos As Long)
C#.NETvoid object_ValidationError(object sender, EventArgumentType e);
VC++void OnValidationErrorobject(_bstr_t Text, enum SftMaskFailureConstants Failure, short KeyAscii, long InvalidPos);
CHRESULT OnValidationErrorobject(BSTR Text, enum SftMaskFailureConstants Failure, short KeyAscii, long InvalidPos);

object

A SftMask object.

Text

The current contents of the control.

Failure

Indicates the reason why the input is invalid.

FailureValueDescription
failureSftMaskNone0Reserved for future use.
failureSftMaskCustom1The contents are valid, but the contents were rejected by the CustomValidation event.
failureSftMaskDelayed2The control has lost the input focus. The contents are invalid.
failureSftMaskValidProp3The Contents.ValidMsg or ValidMsg property is determining the validity of the contents. The contents are invalid.
failureSftMaskInput4The character KeyAscii typed is invalid at position InvalidPos.
failureSftMaskDelete5One or more characters could not be deleted at position InvalidPos.
failureSftMaskDateInvalid6The contents match the mask, but the date is invalid or incomplete.
failureSftMaskDateTimeRange7The contents match the mask, but the date is outside the valid range (Calendar.FirstDate, LastDate).

KeyAscii

The character entered which is invalid. This value is 0 if no character has been entered or no character is associated with the current failure reason.

InvalidPos

The input position where invalid input was detected. This value may be -1 if no input position is associated with the current failure reason.

Comments

The ValidationError event occurs when invalid input is detected, based on the Mask property.

The ValidationError occurs whenever an action results in invalid input.

Once valid input is detected, the CustomValidation event occurs.

See Also SftMask Events | Object Hierarchy


Last Updated 08/13/2020 - (email)
© 2024 Softel vdm, Inc.