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

TypeDescription
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 Error event notifies your application once an error occurs. For instance, if the user lets a required field un-filed, the control fires the Event "You must enter a value in the '...' field.[...]". For instance, If the DataField(exItemsID) property is set, the control highlights in red, the items with errors. The HostDef(exErrorBackColor)  and HostDef(exErrorForeColor) specify the colors to highlight the item with errors. If an error occurs during saving, the change won't be updated to the data-source, until the error is corrected. The HostDef(exErrorClearOnChange) specifies whether the items with errors are highlighted or un-highlighted once a change occurs.

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

Syntax for Error event, /COM version, on:

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

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