Application.OnBeforeOpenProject

www.altova.com Print this Topic Previous Page Up One Level Next page

Home >  Programmers' Reference > Application API > Interfaces > Application > Events >

Application.OnBeforeOpenProject

See also

 

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

 


© 2019 Altova GmbH