Disconnect(ehApp as Object) As Long

A plug-in method

Description

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

Plug-in methods to use in extensions for FORMS

Using an ActiveX object as a FORMS extension