AppDisconnect event

This event occurs when an external automation object calls the Application.Disconnect() function.

Syntax

Public Function AppDisconnect(Client As Object) As Long

Active objects

Application

Parameters

Client contains the object reference (IDispatch) of the client that is trying to disconnect from INVOICES.

Return values

evtOK 

Disconnection accepted.

evtOKAbort 

Disconnection not accepted.

evtError 

Disconnection not accepted.

Suggested usage

This event could be used for supervision applications or to close an INVOICES module. The CloseApp method can be used in an internal handler for this event.

AppConnect event