|
APGScript Object |
|
See Also: |
The APGScript.Output property returns a reference to the Output object used by the script.
VBScript:
JScript:
| oAPGScript | An APGScript object. |
| Output | The APGScript's Output object. |
This property provides external access to the APG script's Output object. See the Output object topic for details on the properties and methods it exposes.
This can be used to access the output file or stream for oAPGScript before or after script execution begins.
This example uses APGScript.Output to set the output filename for an external APG script that is being run. For the complete example, see the topic APGScript.Values Collection.
<%# @Language=JScript #%>
<%#
// Open the QueryToXML script
var oAPGen = Script.CreateObject("APGen");
var oScriptQueryToXml = oAPGen.OpenScript("QueryToXML.apg");
...
// Set filename
oScriptQueryToXml.Output.Filename = "authors.xml";
// Run QueryToXML
oScriptQueryToXml.Run();
#%>