A
Alex
Hello,
I'm writing a console app in VB 2005, and it needs to accept 3 arguments
from the command line. I've already added an If statement which checks to
see if arg(0) is "/?" or "-?" to return some help, but how do I also show
help if there are no arguments? I tried doing arg(0) = "" and also
IsNothing(args(0)) which doesn't seem to work either.
Just curious... now if I run the console app with no arguments it generates
an error, but feeding it the appropriate arguments or /? or -? works fine.
Thanks --
Alex
I'm writing a console app in VB 2005, and it needs to accept 3 arguments
from the command line. I've already added an If statement which checks to
see if arg(0) is "/?" or "-?" to return some help, but how do I also show
help if there are no arguments? I tried doing arg(0) = "" and also
IsNothing(args(0)) which doesn't seem to work either.
Just curious... now if I run the console app with no arguments it generates
an error, but feeding it the appropriate arguments or /? or -? works fine.
Thanks --
Alex