Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

VBScript Array Function

VBScript Array Function


VBScript reference manual Complete VBScript Reference Manual


The Array function returns a variable containing an array.

**Note:** The first element in an array is zero.

Syntax

Array(arglist)

Parameters Description
arglist Required. A list of element values for the array (separated by commas).

Example

Example 1

The example above produces the following output:

20

Try it »

Example 2

The example above produces the following output:

5

Try it »

Example 3

Iterate over all items in the array:

The example above produces the following output:

5

10

15

20

Try it »


VBScript reference manual Complete VBScript Reference Manual