UBound function (LotusScript® Language)

Returns the upper bound for one dimension of an array.

Syntax

UBound ( arrayName [ , dimension ] )

Elements

arrayName

The name of an array.

dimension

Optional. An integer argument that specifies the array dimension for which you want to retrieve the upper bound.

Return value

UBound returns an Integer.

Usage

The default value for dimension is 1.

LotusScript® sets the upper bound for each array dimension when you declare a fixed array, or when you use ReDim to define the array dimensions of a dynamic array.

Example