SetLBound Method

Sets the lower bound value for the specified dimension.

Syntax

object.SetLBound (dim, value)

Parameters

dim
The array dimension (indexed from 0 to Rank - 1) of the lower bound value to be modified.

value
The new lower bound value.

Return Value

None.

Remarks

The lower bound value is the value used to index the first array element for that dimension.

By default, arrays created in the Fortran language have a default lower bound value of 1. In the C language, arrays have a default lower bound value of 0. If desired, you can use the SetLBound method to specify a different lower bound value.

Regardless of the value specified in SetLBound and the language used to create the array, Avis2D properties and methods that take an index argument always use zero-based indexing.

See Also

GetLBound