string s = "/PAGE="Current Page" /Comment="Display screen"/future="Dummy piece";
if i declare like this it shows error, how can i able to declare this as string..
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Sunny SharmaPosted Oct 1, 2013, 3:38 AM
You need to use escape character which tells compiler that the following character should not to be interpreted as special character but as string. it is "\".
Here's your modified statement:
------------------------------------------------------------------------------
string s = \"/PAGE=\"Current Page\" /Comment=\"Display screen\"/future=\"Dummy piece\";
------------------------------------------------------------------------------
HTH :)
Sanjeeb LenkaPosted Oct 1, 2013, 3:38 AM
use this:
string s = @"/PAGE=""Current Page"" /Comment=""Display screen""/future=""Dummy piece""";