A plug-in method
When an INVOICES application closes, it calls the Disconnect method in every loaded plug-in.
Always return EV_OK.
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.
Function Disconnect(ehApp As Object) As Long
Set gItrpApp = Nothing
Disconnect = EV_OK
End Function
Set your global application variable to nothing, thus reducing the reference count of the INVOICES application.