APGen Documentation Previous Topic: ScriptArguments Object Next Topic: ScriptArguments.Item Parent Topic: ScriptArguments Object    ScriptArguments Object
ScriptArguments.Count
See Also:

The ScriptArguments.Count property returns the number of items in the collection.

Syntax

VBScript:

nItems = oArguments.Count

JScript:

nItems = oArguments.Count;

Object

oArguments A ScriptArguments object.

Return Value

nItems The number of arguments.

Example

This code snippet retrieves the number of arguments passed in to the script:

Dim nItems
nItems = Script.Arguments.Count

Applies To

ScriptArguments Object