-
Control Arrays
How can I determine whether a particular control on my form is an element in a control array?
1. Trying to access the index property fails, giving error 343 'object not part of control array'
2. Using IsArray() should logically work, but it fails in my case.
[Edited by honeybee on 06-13-2000 at 01:36 AM]
-
I've tried and failed to find a way.
I used a naming convention to determine whether a control was part of an array or not.
-
Each control have a index property, if it fails retrieving this propery it's not a control array.
-
I tried this and it seems to work:
Code:
Dim ctl As Control
For Each ctl In Me.Controls
If IsArray(ctl) Then
Debug.Print ctl.Name; " is part of a control array."
End If
Next