A plug-in method
When a FORMS 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 FORMS module might not exit 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 FORMS application.