Solved

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

Posted on 2006-11-06
4
2,032 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
  • 2
4 Comments
 
LVL 15

Expert Comment

by:ozymandias
Comment Utility
Are you doing some kind of test ?

Where is the rest of this question ?
0
 

Author Comment

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

Accepted Solution

by:
ozymandias earned 250 total points
Comment Utility
\" is the cotrrect answer
0
 
LVL 62

Expert Comment

by:Fernando Soto
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
How do I get the unique ID after insert? 87 87
Converting C# Objects into JSON file 7 36
Hide Tab Page 3 18
bulid json format 3 16
In order to hide the "ugly" records selectors (triangles) in the rowheaders, here are some suggestions. Microsoft doesn't have a direct method/property to do it. You can only hide the rowheader column. First solution, the easy way The first sol…
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…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

744 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now