APGen Documentation Previous Topic: Output.LastModified Next Topic: Output.BinaryWrite() Parent Topic: Output Object    Output Object
Output.Write()
See Also:

The Output.Write() method writes a value or string to the output stream.

Syntax

VBScript:

Output.Write variant

JScript:

Output.Write( variant );

Parameters

variant The data to be written to the output stream.  This parameter can be any data type supported by the VARIANT data type, provided it can be converted to a string.

Notes

If the variant parameter is a literal string, it should not contain the character combination "#%>".  This character combination will be misinterpreted as a closing APG Script bracket.  Instead, the combination should be separated.  For example, "#%"&">" is an acceptable format in VBScript.

Example

The following example

<%#
     Output.Filename = "Test.htm"
#%>
This file is
<%# Output.Write Output.Path #%><BR>
The APG script used to generate this file is
     
<%# Output.Write Script.Path #%>

produces the output


This file is C:\TEMP\apgs\Test.htm<BR>
The APG script used to generate this file is
     C:\TEMP\apgs\test.apg

Applies To

Output Object