This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!
UBound Function Example
This example uses the
UBound function to determine the largest available subscript for the indicated dimension of an array.
Dim Upper
Dim MyArray(1 To 10, 5 To 15, 10 To 20) ' Declare array variables.
Dim AnyArray(10)
Upper = UBound(
MyArray,
1)
' Returns 10.
Upper = UBound(
MyArray,
3)
' Returns 20.
Upper = UBound(
AnyArray)
' Returns 10.