VBScript Array Function
Definition and Usage
Array can return a variable containing an array.
Note:The first element in the array is zero.
Syntax
Array(arglist)
Parameter | Description |
---|---|
arglist | Required. List of element values in the array (separated by commas). |
Instance
Example 1
dim a a=Array(5,10,15,20) document.write(a(3))
Output:
20
Example 2
dim a a=Array(5,10,15,20) document.write(a(0))
Output:
5