Subscribe(Handler As Object, EventName As String, HandlerFunction As String) As Long

Application object

When you use plug-in technology, use Subscribe to tell FORMS which events you want to subscribe to (use). Handler is a handle to your plug-in module (extension), and EventName is the name of the event, for example FormComplete. HandlerFunction is the name of the function in your plug-in that executes when the event specified in EventName is fired.

Using Subscribe, your extension is called every time the EventName event is fired, i.e. on application level. If you only are interested in events on a certain form or field (not on all forms or fields) use the SubscribeToObject method.

Example of use

'** Subscribe to interesting events

call Application.Subscribe( Me, "FormComplete", "OnFormComplete")

Calling conventions (read this if two or more plug-ins subscribe to the same event)

UnSubscribe

The Application object