event Error (Error as Long, Description as String)
Fired when an internal error occurs.

 TypeDescription 
   Error as Long A long expression that indicates the error number.  
   Description as String A string expression that describes the error.   

The Error event is fired each time when an internal error occurs.  The Error event is usually fired when the control is bounded to an ADO 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. Use the DataSource property to bind 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

Syntax for Error event, /COM version, on:

private void Error(object sender, AxEXG2ANTTLib._IG2anttEvents_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: AxEXG2ANTTLib._IG2anttEvents_ErrorEvent);
begin
end;

begin event Error(long Error,string Description)
end event Error

Private Sub Error(ByVal sender As System.Object, ByVal e As AxEXG2ANTTLib._IG2anttEvents_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(oG2antt,Error,Description)
RETURN

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

<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


Send comments on this topic.
1999-2017 Exontrol.COM, Software. All rights reserved.