Type | Description | |||
Error as Long | A Long expression that specifies the code of the error. If 0, the error indicates a warning or an information. | |||
Description as String | A String expression that defines the error. |
The following indicates warnings/information:
0 Use(ADODB.Recordset)[...]
0 The DateField(exTasksDataSource) is empty or refers to a missing data source
The following indicates errors:
-2147217887 You must enter a value in the '...' field.[...]
-2147217887 Field '...' cannot be a zero-length string.[...]
The following screen shot shows items with errors ( white on black ) :
The following screen shot shows items with errors ( red ) :
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, AxEXG2HOSTLib._IG2HostEvents_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: AxEXG2HOSTLib._IG2HostEvents_ErrorEvent); begin end; begin event Error(long Error,string Description) end event Error Private Sub Error(ByVal sender As System.Object, ByVal e As AxEXG2HOSTLib._IG2HostEvents_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(oG2Host,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 |