Altova XMLSpy 2024 Enterprise Edition

Document.OnBeforeCloseDocument

Home Prev Top Next

Event: OnBeforeCloseDocument(objDocument as Document)as Boolean

 

XMLSpy scripting environment - VBScript:

Function On_BeforeCloseDocument(objDocument)

 ' On_BeforeCloseDocument = False  ' to prohibit closing of document

End Function

 

XMLSpy scripting environment - JScript:

function On_BeforeCloseDocument(objDocument)

{

 // return false;  /* to prohibit closing of document */

}

 

XMLSpy IDE Plugin:

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

 

Description

This event gets fired on any attempt to close a document. To prevent the document from being closed return false.

 

© 2017-2023 Altova GmbH