Methods of Determining Upper & Lower Array Bounds:   Return to List

UBound(MySpecialArray())' Will give the upper bound (i.e., element number)
LBound(MySpecialArray())' Will give the lower bound
UBound(MySpecialArray(), 2)' Will give the upper bound if a multi-dimensional array (same with the lower).  This last example expects the first number to be the number of dimensions and the 2nd number to be the element number.

See also:
Array Converted to Delimited Text String
Building an Array of Filenames (after browse)
Delimited Text to an Array (similar to Split())
Erasing an Array (removing all the elements)
Feed an Array into a New Document (del dupes)
Filename Array from Active Directory
QuickSort routine
QuickSort Single Dimension
QuickSort (Fast!!) (Multidimensional on 2 dims)
QuickSort (Fast!!) (Multidimensional on 3 dims)
Removing Duplicates from an Array
SQL Query Results placed in an Array
Using Split() function to create Array



Note to Webmaster