Solved

To display a quote character (") in a string, which of the following methods should be used?

Posted on 2006-11-06
4
2,064 Views
Last Modified: 2012-06-27
To display a quote character (") in a string, which of the following methods should be used?
0
Comment
Question by:mathieu_cupryk
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 15

Expert Comment

by:ozymandias
ID: 17884822
Are you doing some kind of test ?

Where is the rest of this question ?
0
 

Author Comment

by:mathieu_cupryk
ID: 17884840
no
\"
 
 
--------------------------------------------------------------------------------
 
  """
 
 
--------------------------------------------------------------------------------
 
  //"
 
 
--------------------------------------------------------------------------------
 
  Chr(64);
0
 
LVL 15

Accepted Solution

by:
ozymandias earned 250 total points
ID: 17884868
\" is the cotrrect answer
0
 
LVL 63

Expert Comment

by:Fernando Soto
ID: 17884876
Hi mathieu_cupryk;

To have a " in a string just escape it like in the following line of code.

    string str = "this is a string with a \" character in it";

Fernando
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article series is supposed to shed some light on the use of IDisposable and objects that inherit from it. In essence, a more apt title for this article would be: using (IDisposable) {}. I’m just not sure how many people would ge…
This article introduced a TextBox that supports transparent background.   Introduction TextBox is the most widely used control component in GUI design. Most GUI controls do not support transparent background and more or less do not have the…
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

724 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question