BuiltIn.VarArrayHighBound Method

Applies to TestComplete 12.60, last modified on September 17, 2018

Description

The VarArrayHighBound method returns the high bound for a particular dimension in the Arr array, which must be created with the CreateVariantArray, CreateVariantArray2 or CreateVariantArray3 function. Use the VarArrayHighBound and VarArrayLowBound functions to iterate through the elements of an array when the number of elements is unknown.

Declaration

BuiltIn.VarArrayHighBound(ArrDim)

Arr [in]    Required    Variant    
Dim [in]    Required    Integer    
Result Integer

Applies To

The method is applied to the following object:

Parameters

The method has the following parameters:

Arr

The desired array whose elements are of the Variant type.

Dim

The index of the array's dimension whose high bound you want to get. The leftmost dimension has index 1, the second dimension index is 2, etc.

Result Value

An integer value that means the high bound of the desired dimension of the specified array.

See Also

BuiltIn.CreateVariantArray Method
BuiltIn.CreateVariantArray2 Method
BuiltIn.CreateVariantArray3 Method
BuiltIn.VarArrayRedim Method
BuiltIn.VarArrayLowBound Method

Highlight search results