|
-
Nov 21st, 2000, 12:24 PM
#1
Thread Starter
Addicted Member
I have three flexgrids on my form and want to programmitically loop through them.
I tried
Code:
Dim cntrl as MSHFlexGrid
For Each cntrl in Me.Controls
'process info
next cntrl
What am I doing wrong?
Shawn Hull
VB6, SP3 (Professional Edition)
-
Nov 21st, 2000, 12:29 PM
#2
Frenzied Member
Not sure but just put Next, instead of Next cntrl
-
Nov 21st, 2000, 12:34 PM
#3
New Member
What seems to be the problem?
I tried this code on mine and it walked through it fine.
code_baron
-
Nov 21st, 2000, 12:42 PM
#4
Hyperactive Member
Try this
Code:
Dim ctl As Control
'/
For Each ctl In Me.Controls
If TypeName(ctl) = "MSHFlexGrid" Then
'/ do your funky stuff
End If
Next
'/
Set ctl = Nothing
td.
"One logical slip and an entire scientific edifice comes tumbling down." - Robert M. Pirsig
[email protected]
"but if Einstein is right and God is in the details, reality requires that we sometimes get religion." - Scott Meyers.
-
Nov 21st, 2000, 12:46 PM
#5
Hyperactive Member
oh, and isn't it MSFlexGrid, not MSHFlexGrid?
td.
"One logical slip and an entire scientific edifice comes tumbling down." - Robert M. Pirsig
[email protected]
"but if Einstein is right and God is in the details, reality requires that we sometimes get religion." - Scott Meyers.
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
|