VBScript Array Function
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 »
Complete VBScript Reference Manual