Sun Chili!Soft ASP Sun Chili!Soft
ASP Sun Microsystems

 

VBScript Array Function

Returns a Variant containing an array.

Syntax: VBScript Array Function

Array(arglist)

Arguments: VBScript Array Function

arglist

Required comma-delimited list of values that are assigned to the elements of an array contained with the Variant. If no argument are specified, an array of zero length is created.

Remarks: VBScript Array Function

The notation used to refer to an element of an array consists of the variable name followed by parentheses containing an index number indicating the desired element. In the following example, the first statement creates a variable named A. The second statement assigns an array to variable A. The last statement assigns the value contained in the second array element to another variable.

Dim A

A = Array(10,20,20)

B = A(2)

Note

A variable that is not declared as an array can still contain an array. Although a Variant variable containing an array is conceptually different from an array variable containing Variant elements, the array elements are accessed in the same way.

Copyright 2002 Sun Microsystems, Inc. All rights reserved. Legal Notice.