SetEventServerObject method

Applies to

Syntax

This method informs ReadSoft Invoices that there is an OLE automation object that may supply event handlers. When an event is fired and there is an event server object defined by SetEventServerObject(), the server object is queried for a function with the same name as the event. If such a function is found, it is called with the parameters defined for the event.

If event handlers are defined both internally and in an event server object, both are used. The internal ones are used first.

Although ReadSoft Invoices creates a function called OnInvoiceComplete for internal VBA, the function should be called InvoiceComplete when used in an external event server object.

object.SetEventServerObject( EventServer As Object)

Part

Description

object

An expression evaluating to an object listed in the 'Applies to' table above.

EventServer

Object

Related topic

SetEventReturnValue