|
-
Sep 22nd, 2000, 08:16 AM
#1
Thread Starter
Hyperactive Member
I can pass a form to a function, but i cant pass a control - it seems to pass its default properly (ie .text).
Any ideas for how i do this?
Thanks,
alex.
-
Sep 22nd, 2000, 08:31 AM
#2
Try defining the input of the sub/function as control.
-
Sep 22nd, 2000, 09:26 AM
#3
I assume you know the type of control that you want to pass, so you should code the receiving subroutine to expect the specific type of control you are passing to it. For example if you want to pass a TextBox, the receiving subroutine should be defined something like:
Public Sub MySubroutine(MyTextBox As TextBox)
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
|