How do I find how many items in an array?
i stumbled on this 7yrs-and-counting post...
shacket is right to check the VB Help on UBound and LBound...
since i already checked the VB Help, oh well, will post the UBound here...
======================================================
UBound(arrayname[
, dimension]
)
The
UBound function syntax has these parts:
---------------
: arrayname :
---------------
Required. Name of the array
variable; follows standard variable naming conventions.
---------------
: dimension :
---------------
Optional;
Variant (
Long). Whole number indicating which dimension's upper bound is returned.
Use 1 for the first dimension, 2 for the second, and so on. If
dimension is omitted, 1 is assumed.
======================================================