Altova XMLSpy 2025 Enterprise Edition 

Event: OnBeforeOpenProject(objDialog as FileSelectionDlg)

 

Description

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.

 

Examples

Given below are examples of how this event can be scripted.

 

XMLSpy scripting environment - VBScript:

Function On_BeforeOpenProject(objDialog)

End Function

 

XMLSpy scripting environment - JScript:

function On_BeforeOpenProject(objDialog)

{

}

 

XMLSpy IDE Plugin:

IXMLSpyPlugIn.OnEvent (25, ...)        // nEventId = 25

 

© 2018-2024 Altova GmbH