APGen Documentation Previous Topic: APGScript.APGen Next Topic: APGScript.Log Parent Topic: APGScript Object    APGScript Object
APGScript.Output
See Also:

The APGScript.Output property returns a reference to the Output object used by the script.

Syntax

VBScript:

oAPGScript.Output[.property|method]

JScript:

oAPGScript.Output[.property|method];

Objects

oAPGScript An APGScript object.
Output The APGScript's Output object.

Notes

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.

Example

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();

#%>

Applies To

APGScript Object