Microsoft SDK for Java

getUBound

The getUBound method of the SafeArray Class contains the following signatures:

getUBound()
getUBound(int dim)

getUBound()

Returns the largest valid index of the array's first dimension. This method is identical to the Microsoft® Visual Basic® UBound function.

Syntax

public int getUBound();

Return Value

Returns the largest valid index.

getUBound(int dim)

Retrieves the largest valid index of an arbitrary dimension. (Dimensions are numbered starting with 1.) This method is identical to the Visual Basic UBound function.

Syntax

public int getUBound(int dim);

Return Value

Returns the largest valid index.

Parameters

dim The dimension.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.