SubscribeToObject(Handler As Object, EventName As String, ObjectName As String, HandlerFunction As String ) As Long

Application object

When you use plug-in technology, use SubscribeToObject to tell FORMS which events you want to subscribe to (use) on a certain object ObjectName. 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 EventName event is fired. ObjectName is the name of a field or a form

This method is useful if you only for a certain form or field want to do something and not on all form, or fields processed. If you want your extension to be called every time an event is fired, no matter on what object, use the Subscribe method.

Example of use

'** Subscribe to FormComplete for the form named "PTicket"

call Application.SubscribeToObject( Me, "FormComplete", "PTicket", _

"OnFormCompletePTicket")

UnSubscribe

The Application object