A
Art Krumsee
I have a console app that reads and parses the command line. The code
originally read something like this:
dim CmdLine as String = Command()
if CmdLine.indexof("-trace") then
'tracing is enabled...
end if
In Visual Studio on my development workstation this was working fine. But
on my production server the condition failed regardless of the contents of
the command line. I then went back to the old VB6 syntax
dim CmdLine as String = Command()
if instr(CmdLine,"-trace") then
'tracing is enabled...
end if
This works both on my dev workstation and on the production server. Has
anyone seen this inconsistency?
originally read something like this:
dim CmdLine as String = Command()
if CmdLine.indexof("-trace") then
'tracing is enabled...
end if
In Visual Studio on my development workstation this was working fine. But
on my production server the condition failed regardless of the contents of
the command line. I then went back to the old VB6 syntax
dim CmdLine as String = Command()
if instr(CmdLine,"-trace") then
'tracing is enabled...
end if
This works both on my dev workstation and on the production server. Has
anyone seen this inconsistency?