Mad Scientist Jr--
Did you mean that you want to know the allocated size of the array, or
how many values you have put into the array? Also,what type of array
is it: is it an arrayList member or just something like String()?
If it is like an arrayList, then you can just access the property:
arrayList.items.count.
if it is an array like string() then you have two ways to tell. You
can either use:
1) arrayName.length()
The method arrayName.length() will give you the number of elements
available in your array -> the size created. For example if you did :
redim arrayName(9)
then arrayName.length() would return 10.
or
2) UBound(arrayName).
This method returns the upperbound number for your array. For example
if you did:
redim arrayName(9)
then UBound(arrayName) would return 9.
As far as I know, there is not a way to determine from the array the
actual number of elements YOU put into the array declared like
string(), because when you give it an actual size, there is a default
value that is always inserted, so every item actually has a value.
Hope that this helps.
--mhos