event Change (Ed as Editor, NewValue as Variant)
Occurs when the user changes the editor's content.

TypeDescription
Ed as Editor An Editor object whose value is changed.
NewValue as Variant A Variant expression that indicates the newly editor's value. 
The Change event notifies your application that the user changes the editor's value. Use the ButtonClick event to notify your application that the user clicks the editor's button. If the editor hosts an ActiveX control use the UserEditorOleEvent event to monitor the events inside the ActiveX object. If the control is bounded to a database using the DataSource property, the control automatically updates the database. If failed, the LastError property gets the description of the last error. The Change event is fired just before changing the Value property. The Value property specifies the value of the editor. The field's value depends on the type of the editor that's assigned to the field. For instance, if the field has assigned a DropDownListType editor, the Value property indicates a long expression that indicates the index of the predefined item being selected. Use the Caption property to retrieve the caption of the editor. Use the Label property to retrieve the label of the editor.

Syntax for Change event, /NET version, on:

private void Change(object sender,exontrol.EXRECORDLib.Editor Ed,ref object NewValue)
{
}

Private Sub Change(ByVal sender As System.Object,ByVal Ed As exontrol.EXRECORDLib.Editor,ByRef NewValue As Object) Handles Change
End Sub

Syntax for Change event, /COM version, on:

private void Change(object sender, AxEXRECORDLib._IRecordEvents_ChangeEvent e)
{
}

void OnChange(LPDISPATCH Ed,VARIANT FAR* NewValue)
{
}

void __fastcall Change(TObject *Sender,Exrecordlib_tlb::IEditor *Ed,Variant * NewValue)
{
}

procedure Change(ASender: TObject; Ed : IEditor;var NewValue : OleVariant);
begin
end;

procedure Change(sender: System.Object; e: AxEXRECORDLib._IRecordEvents_ChangeEvent);
begin
end;

begin event Change(oleobject Ed,any NewValue)
end event Change

Private Sub Change(ByVal sender As System.Object, ByVal e As AxEXRECORDLib._IRecordEvents_ChangeEvent) Handles Change
End Sub

Private Sub Change(ByVal Ed As EXRECORDLibCtl.IEditor,NewValue As Variant)
End Sub

Private Sub Change(ByVal Ed As Object,NewValue As Variant)
End Sub

LPARAMETERS Ed,NewValue

PROCEDURE OnChange(oRecord,Ed,NewValue)
RETURN

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

<SCRIPT EVENT="Change(Ed,NewValue)" LANGUAGE="JScript">
</SCRIPT>

<SCRIPT LANGUAGE="VBScript">
Function Change(Ed,NewValue)
End Function
</SCRIPT>

Procedure OnComChange Variant llEd Variant llNewValue
	Forward Send OnComChange llEd llNewValue
End_Procedure

METHOD OCX_Change(Ed,NewValue) CLASS MainDialog
RETURN NIL

void onEvent_Change(COM _Ed,COMVariant /*variant*/ _NewValue)
{
}

function Change as v (Ed as OLE::Exontrol.Record.1::IEditor,NewValue as A)
end function

function nativeObject_Change(Ed,NewValue)
return

The following VB sample displays the editor's value as soon as the user changes the control's content:

Private Sub Record1_Change(ByVal Ed As EXRECORDLibCtl.IEditor, NewValue As Variant)
    Debug.Print Ed.Label & " = " & NewValue
End Sub 

The following VC sample displays the editor's value as soon as the user changes the control's content:

void OnChangeRecord1(LPDISPATCH Ed, VARIANT FAR* NewValue) 
{
	CEditor editor( Ed );
	editor.m_bAutoRelease = FALSE;

	TCHAR szOutput[1024];
	wsprintf( szOutput, "%s, = %s", (LPCTSTR)editor.GetLabel(), (LPCTSTR)V2S( NewValue ) );
	OutputDebugString( szOutput );
}