BuiltIn.VarArrayHighBound Method

Applies to TestComplete 14.30, last modified on November 21, 2019

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.

This method is available if the BuiltIn plugin is installed and enabled. The plugin is installed and enabled by default.

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