Programming Languages VBScript Subjective
Apr 02, 2013

Define Array Variable in VBScript.

Detailed Explanation

An array variable is used to store multiple values in a single variable.
In the following example, an array containing 3 elements is declared:
Dim names(2)
The number shown in the parentheses is 2. We start at zero so this array contains 3 elements. This is a fixed-size array. You assign data to each of the elements of the array like this:
names(0)="Tove"
names(1)="Jani"
names(2)="Stale"

Discussion (0)

No comments yet. Be the first to share your thoughts!

Share Your Thoughts
Feedback