control array size

Hi
I am passing a control array to a precedure. Is there a way to find the size of the control array so that I can loop through it or does "For each" work for it.
An example would be appreciated
Thanks

merlin007
merlin007Asked:
Who is Participating?
 
TimCotteeConnect With a Mentor Commented:
For each should work, alternatively you have

Control.LBound
Control.UBound
Control.Count

So you could use

For i = 0 To Control.Count - 1
  Control(i).Caption = "Hello"
Next
0
 
merlin007Author Commented:
Thanks Tim

merlin007
0
All Courses

From novice to tech pro — start learning today.