Hi, listers!
In VBS, when having an array, that might hold different amounts of elements: Is 
there an easy way to tell how many elements the array holds, at any time.

With strings, for instance, we have the Len function, so as to tell how many 
characters the string holds. Just wondering, if there is something similar for 
arrays?

The other way around, is of course, the following example code; but I find that 
is to envent the wheel every time.

---sample starts---
dim XArray: Array( 1,2,3,4,5 )
dim I, Number

Number = 0
For Each I In XArray
    Number = Number + 1
Next
MsgBox "Array holds " & Number & " elements."
---sample ends---

Reply via email to