Type | Description | |||
Error as Long | A long expression that indicates the error number. | |||
Description as String | A string expression that describes the error. |
The Error event occurs when an internal error occurs. The Error event is usually fired when the control is bounded to an ADO/DAO Recordset. For instance, if the user changes a field, the control tries to update the current record. If it fails, the Error event is fired. The DataSource property binds the control to a database.
Syntax for Error event, /NET version, on:
private void Error(object sender,int Err,string Description) { } Private Sub Error(ByVal sender As System.Object,ByVal Err As Integer,ByVal Description As String) Handles Error End Sub |
private void Error(object sender, AxEXSCHEDULELib._IScheduleEvents_ErrorEvent e) { } void OnError(long Error,LPCTSTR Description) { } void __fastcall Error(TObject *Sender,long Error,BSTR Description) { } procedure Error(ASender: TObject; Error : Integer;Description : WideString); begin end; procedure Error(sender: System.Object; e: AxEXSCHEDULELib._IScheduleEvents_ErrorEvent); begin end; begin event Error(long Error,string Description) end event Error Private Sub Error(ByVal sender As System.Object, ByVal e As AxEXSCHEDULELib._IScheduleEvents_ErrorEvent) Handles Error End Sub Private Sub Error(ByVal Error As Long,ByVal Description As String) End Sub Private Sub Error(ByVal Error As Long,ByVal Description As String) End Sub LPARAMETERS Error,Description PROCEDURE OnError(oSchedule,Error,Description) RETURN |
<SCRIPT EVENT="Error(Error,Description)" LANGUAGE="JScript"> </SCRIPT> <SCRIPT LANGUAGE="VBScript"> Function Error(Error,Description) End Function </SCRIPT> Procedure OnComError Integer llError String llDescription Forward Send OnComError llError llDescription End_Procedure METHOD OCX_Error(Error,Description) CLASS MainDialog RETURN NIL void onEvent_Error(int _Error,str _Description) { } function Error as v (Error as N,Description as C) end function function nativeObject_Error(Error,Description) return |