PDA

View Full Version : [SOLVED] How to write literal ", can't find out how online :/



cerealtx
December 12th, 2007, 10:35 PM
anyone know? i assumed /" but not that easy :(

vambo
December 12th, 2007, 10:38 PM
What like


echo \"?

jken146
December 12th, 2007, 10:41 PM
Back slash is usually used to escape characters, not forward slash. What are you trying to write it in?

cerealtx
December 12th, 2007, 10:44 PM
ive got to use Vbscript for some ajax and im not familar with vb, id use php but the dam server is ******* up with php so im just switching over to vb ill try \ ty

edit: nvm im just going to use PHP its so much easier heh ty anyway guys

jviscosi
December 12th, 2007, 10:51 PM
In regular VB you escape a quote by doing it twice, e.g., "" (which is not the easiest thing in the world to read). So you'd end up with something like this:



Debug.Print "Jim said, ""Why do I have to escape quotes in this stupid fashion?"""