|
-
Jun 11th, 2000, 06:12 PM
#1
Thread Starter
Randalf the Red
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]
-
Jun 11th, 2000, 06:28 PM
#2
Fanatic Member
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.
-
Jun 11th, 2000, 07:19 PM
#3
transcendental analytic
Each control have a index property, if it fails retrieving this propery it's not a control array.
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
Jun 11th, 2000, 10:39 PM
#4
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
"It's cold gin time again ..."
Check out my website here.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|