LBound: Difference between revisions
Jump to navigation
Jump to search
Created page with "LBOUND(''array''[, ''dimension'']) '''Description''' LBOUND returns a long value specifying the smallest available subscript in dimension of an array, ''array''. The require..." |
No edit summary |
||
Line 29: | Line 29: | ||
'''Related Items''' | '''Related Items''' | ||
[[array|ARRAY]], [[dim|DIM]], [[redim|REDIM | [[array|ARRAY]], [[dim|DIM]], [[redim|REDIM]], [[unbound|UNBOUND]] |
Revision as of 17:21, 8 July 2012
LBOUND(array[, dimension])
Description
LBOUND returns a long value specifying the smallest available subscript in dimension of an array, array. The required parameter, array, is any array variable. The optional parameter, dimension, specifies which dimension's lower bound is returned, beginning with the default, 1. The lower bound of any dimension of an array is always 0.
Example
REM LBOUND Example 'LBOUND returnslowerboundofarraydimension DIM Other, Children(3), Parents(3, 1) Other = ARRAY("Damien", "Pip", "Wendy") PRINT "'Other' Lower Bound:", LBOUND(Other) PRINT "'Children' Lower Bound:", _ LBOUND(CHILDREN, 1) PRINT "'Parents' Lower Bounds:", _ LBOUND(Parents), LBOUND(Parents, 2)
Output
'Other' Lower Bound:0 'Children' Lower Bound: 0 'Parents' Lower Bounds: 0 0
Related Items