|
-
Feb 11th, 2005, 11:54 AM
#1
Thread Starter
New Member
Not require return values
If I have a function that returns a value I don't care about, how can I make VB6 not complain about not catching that answer? I have done it before, so I know it is possible, but I forget how. Right now when I click off the line, it turns red and an error comes up "Compiler Error: Expected ="
-
Feb 11th, 2005, 11:57 AM
#2
PowerPoster
Re: Not require return values
How about making it a procedure rather than a function?
-
Feb 11th, 2005, 12:03 PM
#3
Frenzied Member
Re: Not require return values
Does it still give you the error if you use the
Call SomeFunction
syntax..?
-
Feb 11th, 2005, 12:11 PM
#4
PowerPoster
Re: Not require return values
You could also:
Bogus = function(...) and just ignore Bogus
-
Feb 11th, 2005, 12:17 PM
#5
Re: Not require return values
I'm assuming you probably included the () when calling it. Remove those, and simply call it like a normal sub. It'll be fine.
Tg
-
Feb 11th, 2005, 12:34 PM
#6
Thread Starter
New Member
Re: Not require return values
Thanks techgnome, fixed me right up.
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
|