Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > .NET > Other .NET > General .NET
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
General .NET For general discussion of MICROSOFT .NET topics that don't fall within any of the other .NET forum subcategories or .NET language forums.  If your question is specific to a language (C# or Visual Basic) or type of application (Windows Forms or ASP.Net) try an applicable forum category. ** PLEASE BE SPECIFIC WITH YOUR QUESTION ** When posting here, provide details regarding the Microsoft .NET language you are using and/or what type of application (Windows/Web Forms, etc) you are working in, if applicable to the question. This will help others answer the question without having to ask.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the General .NET section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old April 3rd, 2006, 11:03 AM
Registered User
 
Join Date: Apr 2006
Location: barcelona, katlunya, Spain.
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default variables in vb.net

hello everybody

 i am bit new to .net I have one simple question. I need to put the following line in a string variable. please help me to do that.


he said "WE ARE FREINDS" and went away.

These double quotes are troubling me. I need these double quotes inside the variable. please help me.

thanks in advance to everybody.

regards.

ravi.

Reply With Quote
  #2 (permalink)  
Old April 3rd, 2006, 11:45 AM
Imar's Avatar
Wrox Author
Points: 71,804, Level: 100
Points: 71,804, Level: 100 Points: 71,804, Level: 100 Points: 71,804, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,052
Thanks: 80
Thanked 1,581 Times in 1,558 Posts
Default

Hi there,

You need to double the double quotes, like this:

Dim someString As String
someString = "he said ""WE ARE FREINDS"" and went away."

Hope this helps,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
While typing this post, I was listening to: Sherry Fraser by Marcy Playground (Track 6 from the album: Marcy Playground) What's This?
Reply With Quote
  #3 (permalink)  
Old April 4th, 2006, 06:06 AM
Registered User
 
Join Date: Apr 2006
Location: barcelona, katlunya, Spain.
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hi Imar,

        well thanx a million. It did work. thanx a lot

cheers.


Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
vb.net 2008 re: VB.NET databases book bigbearjeff VB.NET 0 June 2nd, 2008 01:22 PM
how can I pass variables to vb? astarti Beginning VB 6 4 September 5th, 2007 08:43 AM
scope of variables in VB.NET bhavna General .NET 1 January 26th, 2007 06:00 PM
VB.Net question on Windows VB.Net datagrids dmsousa VS.NET 2002/2003 1 January 19th, 2005 02:45 PM
vb.net 2002 - vb.net 2003 book metalaaron Wrox Book Feedback 0 August 2nd, 2003 10:46 PM



All times are GMT -4. The time now is 11:22 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.