Display String With Quotes
-
Hi everyone, Here I have a strange problem. I am working on a console application. I use the following code to print : Welcome
console.writeline("Welcome")
Now I want to print: "Welcome" I want to print it with quotes. but , console.writeline(" "Welcome" ") gives me an error. So, what to do to print a word with quotes?? Thanks For any help, Dan -
Hi everyone, Here I have a strange problem. I am working on a console application. I use the following code to print : Welcome
console.writeline("Welcome")
Now I want to print: "Welcome" I want to print it with quotes. but , console.writeline(" "Welcome" ") gives me an error. So, what to do to print a word with quotes?? Thanks For any help, DanNot strange at all. How would the compiler know when " means a quote you want to print, or when it means a quote, in the usual sense ? console.writeline("\"Welcome\"") Assuming it works the same as C#. f not, you'll have to google to find the VB syntax.
Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
-
Hi everyone, Here I have a strange problem. I am working on a console application. I use the following code to print : Welcome
console.writeline("Welcome")
Now I want to print: "Welcome" I want to print it with quotes. but , console.writeline(" "Welcome" ") gives me an error. So, what to do to print a word with quotes?? Thanks For any help, DanFor VB you can use
console.writeline("""Welcome""")
-
For VB you can use
console.writeline("""Welcome""")
Thanks for help .