|
-
Jan 26th, 2004, 09:11 AM
#1
Thread Starter
Fanatic Member
Quotes - How to put them in to display?
I want to display this line inclucing the quote marks:
"Hello world"
I do I include the quote marks?
Simple I am sure, but I am new.
Thanks!
-
Jan 26th, 2004, 09:59 AM
#2
Frenzied Member
You have to escape the characters. Try this
Code:
label1.Text = "\"Hello World\"";
-
Jan 28th, 2004, 02:34 PM
#3
Just to throw out an alternative, you can also do:
Code:
Console.WriteLine(@"""Hello World""");
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|