Max count in an array
how can you get the max count of items in any array when you don't know how many items are in it?
[102 byte] By [
AM003295] at [2007-11-11 8:37:17]

# 1 Re: Max count in an array
You have to check every item to the upper bounds (UBound) of the array. There is no count property like you would find in a Collection.
# 2 Re: Max count in an array
...and another thing: You need to be aware of how, exactly, you wish to define the quantity "count".
For example, in an array of 10 numbers, 3 have the value 0. Well, is zero a valid item that should be included in the final count, or is it not?
In an array of ten string items, same thing: 7 have len > 0, but 3 are = "". Again, are they included in or excluded from the count?
Whatever algorhythm you select to obtain a "count" you need to insure it matches your desires...
Sigid at 2007-11-11 17:26:19 >
