HTBasic Help
×
Menu
Index

BASE

Returns the lower bound of an array dimension.
 
 BASE( array-name[$],dimension )
 
Where:
dimension = integer between 1 and 6 ≤ RANK of array
 
Usage:
Lwr=BASE(Yarray$,Dim)
Uppr(2)=BASE(A,2)+SIZE(A,2)-2
 
Example:      BASE.BAS
 
Description:
BASE returns the current lower bound of an array dimension. This might be different than the DIMensioned value if a REDIM or matrix statement has changed it. This function is also useful in a subprogram where an array is passed in as one of the parameters.
 
See Also: