APGen Documentation Previous Topic: ScriptArguments.Item Next Topic: ScriptArguments.FindString() Parent Topic: ScriptArguments Object    ScriptArguments Object
ScriptArguments.Add()
See Also:

The Arguments.Add() method adds an item to the collection.

Syntax

VBScript:

oArguments.Add value

JScript:

oArguments.Add( value );

Object

oArguments A ScriptArguments object.

Parameters

value A VARIANT value to add to the collection of arguments.

Notes

The new item is added to the end of the array of arguments, and ScriptArguments.Count is incremented.

Example

This code snippet adds two arguments when running an APGScript.  Note that it would be easier to call APGScript.RunArgs() and pass in the two arguments.

<%#

Dim oScript
Set oScript = APGen.OpenScript("SrcToHtml.apg")

' Add two arguments
oScript.Arguments.Add "c:\inetpub\wwwroot\default.asp"
oScript.Arguments.Add "c:\inetpub\wwwroot\default_asp_src.htm"

' Run the script
oScript.Run

#%>

Applies To

ScriptArguments Object