- Home /
How do I type in a URL without commenting out the rest of the line?
It seems like a really dumb question but it's got me stuck... As soon as I type in
Application.OpenURL ("http://
everything after the // becomes a comment. My workaround was to create a string "http:/" and then add "/myurl.net/whatever.html" to the end of it, but there's got to be a less stupid way to do it...?
Answer by Eric5h5 · Sep 05, 2012 at 05:43 AM
It's not a comment. If whatever text editor you're using displays it as such, you might be happier with a better editor, but regardless of what it looks like, it's not actually compiled as a comment or anything.
Answer by Anusha · Sep 05, 2012 at 05:47 AM
Application.OpenURL ("http://www.google.com"); this works fine.... the '//' dose not affect inside ""... you can also prefix the string with '@'..... Application.OpenURL (@"http://www.google.com"); what @ dose is it considers all the letters inside the "" as a string..