string format
-
i want put string in string means i my text has "" in it how can put in between ""? "<div id="divPrint""
-
i want put string in string means i my text has "" in it how can put in between ""? "<div id="divPrint""
You ought to escape the nested string, according to the particular language's escape sequences.
Vasudevan Deepak Kumar Personal Homepage
Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson -
Can you explian your problem a bit more? Do you mean you want to put a string value in the div id?
-
no thats easy but i forgot it. i want do this string a="hello "martin""; i want martin be in ""
-
Ah, thats a much better explanation of what you want rather then that mish mash you wrote in your first post try this stringname = "Title:" + "''Name''"; its not quite what you want, but close
-
i want put string in string means i my text has "" in it how can put in between ""? "<div id="divPrint""
use ControlChars.quote function to put quotes in string.. e.g. strJavaScript="<div id=" + Controlchars.quote() + " divid" + Controlchars.quote() +" />"; cheers !
Ashish Sehajpal