|
-
Oct 15th, 2000, 05:08 PM
#1
Thread Starter
Hyperactive Member
Hi,
How can I pass a control array of command buttons to a function and use it?
I have 4 arrays of command buttons and want to pass each to a function that will change some of their properties.
CommandArrayOne(11)
CommandArrayTwo(11)
CommandArrayThree(11)
CommandArrayFour(11)
Basically I have something like this but it doesn't work:
'------------------------------------------------
Private Sub MySub(ACommandArray() As CommandButton)
For ctr = 1 to 10
ACommandArray(ctr).visible = False
Next ctr
End Sub
'------------------------------------------------
'I wanted to use it like:
MySub CommandArrayOne
Thanks
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
|