473,322 Members | 1,562 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

Very simple but completely stumped...

Hello Everyone

What will following string contains thru this assignment
string strList = "\"" + "test" + "\"";

If the result is \"test\" then what should I do to get "test". This seems
so basic but I am really confused with all different languages (c/c++/java
and c#).
Thanks
Aravind

Jul 21 '05 #1
3 1053
"Aravind @Office" <ar*****@ktelectric.com> wrote in message
news:Ol**************@TK2MSFTNGP15.phx.gbl...
Hello Everyone

What will following string contains thru this assignment
string strList = "\"" + "test" + "\"";


It will contain "test" (with the quotation marks).

Jul 21 '05 #2
Hello John

That is what I was expecting. But I got \"test\". This confused me a lot
and hence the post. However after your response, I tried it again and I got
the result as expected (as you have mentioned). Only thing that changed
was, VS gave one of those windows error which gives us a option to send an
error report to MS. After that I was positively seeing this error and I
spent almost half hour before giving up and then rebooted the computer and
used StringBuilder to build my string. So I am thinking something got out
of wack.

Anyway what is the chance of something like this happen while the code is
running?
Thanks for the reply though.

aravind.
"John Vottero" <Jo**@mvpsi.com> wrote in message
news:uP**************@TK2MSFTNGP10.phx.gbl...
"Aravind @Office" <ar*****@ktelectric.com> wrote in message
news:Ol**************@TK2MSFTNGP15.phx.gbl...
Hello Everyone

What will following string contains thru this assignment
string strList = "\"" + "test" + "\"";


It will contain "test" (with the quotation marks).

Jul 21 '05 #3

"Aravind @Office" <ar*****@ktelectric.com> wrote in message
news:eD**************@TK2MSFTNGP10.phx.gbl...
Hello John

That is what I was expecting. But I got \"test\". This
confused me a lot
and hence the post. However after your response, I tried it
again and I got
the result as expected (as you have mentioned).


If you look at the value of the variable in debug mode then the
value will appear to be \"test\", however that is only display
for the developer. The actual value of the variable is "test",
and anywhere it is used it will be "test".

Andrew Faust
Jul 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Greg | last post by:
I am working on a project that will have about 500,000 records in an XML document. This document will need to be queried with XPath, and records will need to be updated. I was thinking about...
10
by: Jason Curl | last post by:
Greetings, I have an array of 32 values. This makes it extremely fast to access elements in this array based on an index provided by a separate enum. This array is defined of type "unsigned long...
5
by: le007 | last post by:
:) Hey All, I've recently tried my hand with CSS. I know a good bit of html and thats more or less it. I've moved back to Ireland from Australia now and I'm trying to put a site together to keep...
52
by: robert | last post by:
I'm very pleased to announce that Foundations of F#, the first book to be published on the F# programming, will finish its first printing run, tomorrow, Friday 25th May. It should reach any...
23
Chrisjc
by: Chrisjc | last post by:
I my self find my self stumped at the moment. About a month ago I fixed my sisters computer was simple just some virus I was able to clear them off and clean it up. Ran grate after... Few weeks...
1
by: slamtart | last post by:
Hi everyone, Stumped for awhile with this one. Not sure what to do next. Basically, I have a laptop computer which I use for work. Prior to around May of this year, there's no trick to...
0
by: pooky333 | last post by:
Hello! Please help someone... I am still at work and completely stumped. I am a relative beginner at VB and have put together some apparently awful code (as shown below). It is to compare two...
1
by: Sallana | last post by:
Hello guys. My name is Lynne and I am currently trying to build a website for a game that I play online called Exodus. This is the page --> http://exodus.mudmagic.com Immediately you can...
5
by: Kardon Coupé | last post by:
Dear All, I'm bemused, I'm moving an application I've written from VB6 into VS2005, and I'm getting all the fundamentals over before I delve into the hard part, like getting the forms layout...
3
by: ellishnoo | last post by:
Hi there, Please be kind, I have seen some posts where you tell people off for asking without investigating, Im sure most have, anyway I have. Ive only been doin VB 2008 for 7 weeks, and have...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.