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 ="
Re: Not require return values
How about making it a procedure rather than a function?
Re: Not require return values
Does it still give you the error if you use the
Call SomeFunction
syntax..?
Re: Not require return values
You could also:
Bogus = function(...) and just ignore Bogus
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
Re: Not require return values
Thanks techgnome, fixed me right up.