UBound

Return the largest subscript for an array dimension.
Syntax
UBound(arrayname[, dimension])


Key
arrayname The name of the array variable

dimension The array dimension as a whole number
1 for the first dimension, 2 for the second etc
(default=1)

Example
Dim Arr(5,10,12)
result = UBound(Arr, 1)
WScript.Echo result 

Make a Free Website with Yola.