![]() | Type | Description | ||
| Ed as Editor | An Editor object whose value is changed. | |||
| NewValue as Variant | A Variant expression that indicates the newly editor's value. |
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 );
}