APGen Documentation Previous Topic: Script.Values Collection Next Topic: Script.Error Event Parent Topic: Script Object    Script Object
Script.Arguments Collection
See Also:

The Script.Arguments collection contains arguments passed to the script.  It is of type ScriptArguments.

Syntax

VBScript:

Script.Arguments[ ( index ) | .property | .method ]

JScript:

Script.Arguments[ ( index ) | .property | .method ];

Objects

Script The Script object.
Script.Arguments A ScriptArguments object.

Collection Parameters

index A zero-based index to the collection.

Notes

See the ScriptArguments Object for the properties and methods that apply to this object.

Script.Arguments returns the same collection as APGScript.ArgumentsAPGScript.Arguments allows access to script arguments from outside of the script, whereas Script.Arguments allows access to script arguments from inside of the script.  This duality is useful for passing arguments into and out of an APG script.

When an APG script is run from the command line (see Executing APG Scripts from the Command Line ), this collection is populated with command line arguments.  When an APG script is run programmatically using APGen.RunArgs() or APGScript.RunArgs(), this collection is populated with all specified arguments.

Applies To

Script Object