Microsoft® JScript™
ubound Method
 Language Reference 
Version 3 

See Also                  Applies To


Description
Returns the highest index value used in the specified dimension of the VBArray.
Syntax
safeArray.ubound(dimension)

The ubound method syntax has these parts:

Part Description
safeArray Required. A VBArray object.
dimension Optional. The dimension of the VBArray for which the higher bound index is wanted. If omitted, ubound behaves as if a 1 was passed.

Remarks
If the VBArray is empty, the ubound method returns undefined. If dim is greater than the number of dimensions in the VBArray, or is negative, the method generates a "Subscript out of range" error.

© 1997 by Microsoft Corporation. All rights reserved.