The HBOUND function
returns the upper bound of a one-dimensional array or the upper bound
of a specified dimension of a multidimensional array. Use HBOUND in
array processing to avoid changing the upper bound of an iterative
DO group each time you change the bounds of the array. HBOUND and
LBOUND can be used together to return the values of the upper and
lower bounds of an array dimension.