Platform | x64, Win32, .NET |
Purpose |
To return all the lower bounds or a specified lower bound of an array. |
Class |
Inquiry function. |
Syntax |
INTEGER FUNCTION LBOUND(ARRAY [, DIM [, KIND]]) |
Description |
ARRAY is an array of any type, not a scalar. If it is a pointer it must be associated. If it is an allocatable array it must be allocated. DIM (optional) is a scalar integer with a value in the range 1 < DIM < n, where n is the rank of ARRAY. The result is of default integer type. It is scalar if DIM is present; otherwise, the result is an array of rank one and size n, where n is the rank of ARRAY. If KIND is present it provides the INTEGER kind value of the result. |
Return value |
|
Notes |
LBOUND returns a value of default integer type on all platforms. For x64 this will be 32 bits by default. |
Example |
If A is declared by the statement REAL A(2:3,7:10) then LBOUND(A) is [2, 7] and LBOUND(A, DIM=2) is 7. |