event ValidateValue (NewValue as Variant, Cancel as Boolean)
Validates the field's value, once the user leaves the field.

TypeDescription
NewValue as Variant A Text expression that specifies the control's text to be validated. The NewValue parameter carries the same value as Value(exClipModeLiteralsInclude)
Cancel as Boolean A Boolean expression that specifies whether the value is validated or canceled. If True, the Value is not validated, so the field receives again the focus, if False, the user can leave the field. 
The ValidateValue event is fired once the user leaves the field and the current value needs to be validated. The ValidateValue event could be user to validate programmatically the value your user enters in the field. The Invalid property specifies the html message to be displayed when the user enters an inappropriate value for the field. For instance, if the user fills the field's content properly, the ValidateValue event gives you a chance to validate more the value, if for instance, it does not fit your requirements. The Valid property specifies whether the field is completed and valid ( all required entities are completed, and the ValidateAs option is verified). Use the Text property to gives the control's text as it is displayed.

The ValidateValue event is fired only if

The Value property gives the field's content in different formats.

Syntax for ValidateValue event, /NET version, on:

private void ValidateValue(object sender,object NewValue,ref bool Cancel)
{
}

Private Sub ValidateValue(ByVal sender As System.Object,ByVal NewValue As Object,ByRef Cancel As Boolean) Handles ValidateValue
End Sub

Syntax for ValidateValue event, /COM version, on:

private void ValidateValue(object sender, AxEXMASKEDITLib._IMaskEditEvents_ValidateValueEvent e)
{
}

void OnValidateValue(VARIANT NewValue,BOOL FAR* Cancel)
{
}

void __fastcall ValidateValue(TObject *Sender,Variant NewValue,VARIANT_BOOL * Cancel)
{
}

procedure ValidateValue(ASender: TObject; NewValue : OleVariant;var Cancel : WordBool);
begin
end;

procedure ValidateValue(sender: System.Object; e: AxEXMASKEDITLib._IMaskEditEvents_ValidateValueEvent);
begin
end;

begin event ValidateValue(any NewValue,boolean Cancel)
end event ValidateValue

Private Sub ValidateValue(ByVal sender As System.Object, ByVal e As AxEXMASKEDITLib._IMaskEditEvents_ValidateValueEvent) Handles ValidateValue
End Sub

Private Sub ValidateValue(ByVal NewValue As Variant,Cancel As Boolean)
End Sub

Private Sub ValidateValue(ByVal NewValue As Variant,Cancel As Boolean)
End Sub

LPARAMETERS NewValue,Cancel

PROCEDURE OnValidateValue(oMaskEdit,NewValue,Cancel)
RETURN

Syntax for ValidateValue event, /COM version (others), on:

<SCRIPT EVENT="ValidateValue(NewValue,Cancel)" LANGUAGE="JScript">
</SCRIPT>

<SCRIPT LANGUAGE="VBScript">
Function ValidateValue(NewValue,Cancel)
End Function
</SCRIPT>

Procedure OnComValidateValue Variant llNewValue Boolean llCancel
	Forward Send OnComValidateValue llNewValue llCancel
End_Procedure

METHOD OCX_ValidateValue(NewValue,Cancel) CLASS MainDialog
RETURN NIL

void onEvent_ValidateValue(COMVariant _NewValue,COMVariant /*bool*/ _Cancel)
{
}

function ValidateValue as v (NewValue as A,Cancel as L)
end function

function nativeObject_ValidateValue(NewValue,Cancel)
return