||To determine the upper bound of an array, use the |
UBound function. The
UBound function can take two parameters - the first parameter is required, and is the variable name of the array whose upper bound you are interested in; the second parameter is optional and is the dimension of the array whose upper bound you are interested in. If the second parameter is omitted, a value of
1 is assumed.
To determine the lower bound, you can use
LBound, which uses the same arguments as
UBound, but there is really little point in doing so. In VBScript all array lower bounds are always zero.
For more info, check out the technical docs for