Disconnect(ehApp as Object) As Long

A plug-in method

Description

When an INVOICES application closes, it calls the Disconnect method in every loaded plug-in.

Return value

Always return EV_OK.

Remarks

Every plug-in must contain this method with exactly this signature. The method is important to implement, so that the reference count is correct. If it is not, the INVOICES module might not close correctly.

Example

Function Disconnect(ehApp As Object) As Long

Set gItrpApp = Nothing

Disconnect = EV_OK 

End Function

Usage

Set your global application variable to nothing, thus reducing the reference count of the INVOICES application.

Plug-in methods to use in INVOICES extensions

Using an ActiveX object as an INVOICES extension