Array.GetLowerBound

Syntax

GetLowerBound(Dimension: Integer): Integer;

Parameters

Dimension. Number of the dimension, the lower limit of which must be obtained. Dimensions numbering starts with one.

Description

The GetLowerBound method returns the lower limit of the dimension, the number of which is passed as the Dimension input parameter.

Example

Sub Main;

Var

Ar: Array[-5..10, 15];

Lower, i, j: Integer;

Begin

For i := -5 To 10 Do

For j := 0 To 14 Do

Ar[i, j] := i * j;

End For;

End For;

Lower := Ar.GetLowerBound(1);

End Sub Main;

After executing the example data is written to the Ar two-dimensional array, and the Lower variable will contain the lower limit of the first dimension, in this case, -5.

See also:

Array