Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > General .NET
| 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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #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.

  #2 (permalink)  
Old April 3rd, 2006, 11:45 AM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 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?
  #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.




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





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.