06-30-2009, 07:02 PM
I have tried a few ways to get a default value when you call a function, of which all have failed.
I first tried overloading, which as nothing to do with the default value, but it what I really wanted to do. That didn't work.
I tried using the following which also did not work.
I'm not really sure if it's possible.
I first tried overloading, which as nothing to do with the default value, but it what I really wanted to do. That didn't work.
I tried using the following which also did not work.
Code:
Function testFunc(ByVal testvar As int = 1)
and
Function testFunc(ByVal testvar = 1)