Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old May 16th, 2006, 11:36 AM   #1
Ducky
Newbie
 
Ducky's Avatar
 
Join Date: Apr 2006
Posts: 11
Rep Power: 0 Ducky is on a distinguished road
Need help putting a " in a string

I need to display a string that says something like "banana" but I need the quotes. I know in C++ you put \" but I dont know how to do that in VB.
Ducky is offline   Reply With Quote
Old May 16th, 2006, 11:41 AM   #2
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
Just put two quotes:
myString = "He said, ""My name is Bob."""
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Old May 16th, 2006, 11:43 AM   #3
Ducky
Newbie
 
Ducky's Avatar
 
Join Date: Apr 2006
Posts: 11
Rep Power: 0 Ducky is on a distinguished road
Wow, I feel really stupid. Thanks for the help.
Ducky is offline   Reply With Quote
Old May 16th, 2006, 4:38 PM   #4
OpenLoop
Expert Programmer
 
OpenLoop's Avatar
 
Join Date: May 2005
Location: East Lansing, MI
Posts: 663
Rep Power: 4 OpenLoop is on a distinguished road
Wow, I feel that VB is stupid
OpenLoop is offline   Reply With Quote
Old May 17th, 2006, 1:33 PM   #5
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
Well, it's not my favourite language, but the guy asked for help, not a lecture. :p
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 8:57 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC