Hello There,

How can i use in the code the " character witout the complier will throw en error
im trying to create the following string :

what i need :

<A NAME="ppp" A> hello</A>

when the ppp is an object

myString ="<A NAME=""+object+"" A> hello</A>"

as you see i need to use the double ""

Thanks ahead

oh i see.

this should work:

fooString = "<a name=\""+fooObject+"\">hello</a>"

The slash (\) escapes the inner quotes, telling the compiler that the quote directly after each slash is part of the string. I could do some nitpicking on the HTML code there but I doubt it's pertinent. :P

commented: excatly what i needed +1

Thanks

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.