Declaration: OnEvent(nEventID as long, arrayParameters as SAFEARRAY(VARIANT), pXMLSpy as IDispatch) as VARIANT
OnEvent() is called each time an event is raised from XMLSpy.
Possible values for nEventID are:
Events available since XMLSpy 4r4:
Events available since XMLSpy 2004:
Events available since XMLSpy 2004r4 (type library version 1.4):
Events available since XMLSpy 2006 SP1 (type library version 1.5):
Events available since XMLSpy 2007 (type library version 1.6):
Events available since XMLSpy 2009 (type library version 2.2):
Events available since XMLSpy 2012 (type library version 2.8):
The names of the events are the same as they appear in the Scripting Environment of XMLSpy. For IDE plug-ins the names used are immaterial. The events are identified using the ID value.
arrayParameters is an array which is filled with the parameters of the currently raised event. Order, type and meaning of the single parameters are available through the scripting environment of XMLSpy. The events module of a scripting project, contains predefined functions for all events prior to version 4.4. The parameters passed to the predefined functions are identical to the array elements of the arrayParameters parameter.
Events raised from the Authentic View of XMLSpy do not pass any parameters directly. An "event" object is used instead. The event object can be accessed through the Document object of the active document.
pXMLSpy holds a reference to the dispatch interface of the Application object of XMLSpy.
If the return value of OnEvent() is set, then neither the IDE plug-in, nor an event handler inside of the scripting environment will get this event afterwards. Please note that all IDE plug-ins get/process the event before the Scripting Environment does.