"IntraRELY" <In*******@yahoo.com> wrote in message news:%2****************@TK2MSFTNGP12.phx.gbl...
I need to convert the following code. The online conversion tool could do it
w/o error. Any help appreciated.
if the online tool can do it to your satisfaction, why are you posting it here?
static void Main(string[] args) {
args = WebCommandLineHelper.CommandLineArgs(args);
string argstring = "";
foreach( string arg in args ) argstring += arg + "\r\n";
MessageBox.Show(argstring, "Args from " +
(WebCommandLineHelper.LaunchedFromUrl ? "URL" : "EXE"));
}
}
I cant say that the below code is completely correct (best practice wise), but It should run and
do what you wanted. I dont particularly like using IIF, but thats what would be the most direct
translation. Odd to think that i dont know C# and I was still able to do this, eh? I bet you
could have figured it out too.
public sub Main(args() as string)
args = WebCommandLineHelper.CommandLineArgs(args);
dim argstring as string = ""
for each arg as string in args
argstring += arg & vbCrLf
next
MessageBox.Show(argstring,iif(WebCommandLineHelper .LaunchedFromUrl ,"URL", "EXE))
end sub