Advertisement

07.19.2008 at 08:51AM PDT, ID: 23579144
[x]
Attachment Details

using C# how do I include the character " in a string as in 2" (meaning 2 inches)

Asked by Gavin_Stafford in Microsoft Visual C#.Net

I'm trying to add text with the inches sign i.e. 2" into my C# program but it gives me a newline constant error.
cbosize.text = "2""

How do I do it?

i've tried:

cbosize.text = @"2"" but it doesnt work. Any ideas?

Thaks

Gavin
Start Free Trial
 
Loading Advertisement...
 
[+][-]07.19.2008 at 08:56AM PDT, ID: 22042865

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Microsoft Visual C#.Net
Sign Up Now!
Solution Provided By: webtubbs
Participating Experts: 1
Solution Grade: A
 
 
[+][-]07.19.2008 at 09:00AM PDT, ID: 22042877

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.19.2008 at 09:05AM PDT, ID: 22042894

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628