|
-
Jul 16th, 2003, 07:07 AM
#1
Thread Starter
Fanatic Member
Passing 2 arguments
Hello!
I am passing two arguments to a sub
Argform as form, cboProd as comboBox
an in the subroutine
I am writing Argform.cboProd.clear and am failing
Apparently, it's looking for an actual combobox with
that name cboProd on the form itself..
Any ideas?
-
Jul 16th, 2003, 07:26 AM
#2
The combo in your sub has a reference to the form built in to it (as with all controls passed as parameters or stored in variables), so you should NOT use a form when you reference it, even if it is the correct form.
Change "ArgForm.cboProd.clear" to "cboProd.clear", and everything will be fine.
-
Jul 16th, 2003, 07:30 AM
#3
Thread Starter
Fanatic Member
...
Thanks much, my friend...
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
|