|
Script Object |
|
See Also: |
The Script.Arguments collection contains arguments passed to the script. It is of type ScriptArguments.
VBScript:
JScript:
| Script | The Script object. |
| Script.Arguments | A ScriptArguments object. |
| index | A zero-based index to the collection. |
See the ScriptArguments Object for the properties and methods that apply to this object.
Script.Arguments returns the same collection as APGScript.Arguments. APGScript.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.