Type | Description | |||
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 | (By Reference) 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 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 |
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 |
<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 |