Event: OnBeforeOpenProject(objDialog as FileSelectionDlg)
This event gets fired after a project file has been selected but before the project gets opened. The file selection dialog object is initialized with the name of the selected project file. You can modify this selection. To continue the opening of the project leave the FileSelectionDlg.DialogAction property of io_objDialog at its default value spyDialogOK. To abort the opening of the project set this property to spyDialogCancel.
Given below are examples of how this event can be scripted.
XMLSpy scripting environment - VBScript:
XMLSpy scripting environment - JScript:
XMLSpy IDE Plugin:
IXMLSpyPlugIn.OnEvent (25, ...) // nEventId = 25
(C) 2018 Altova GmbH