Actually the first parameter in a replace command in VBScript is the string
to be searched, the second parameter is what you are searching for, and the
third is what you want to replace the second parameter with.
So I need a way to tell the replace that I want to replace any double quotes
that are found in the string with a slash then the double quote so that the
java script that I am sending the string to, ignores the double quotes as a
special character, but leaves them in as part of the string.
So the big problem is making the replace command understand that while
double quotes are what generally delineates the string it has to consider in
parameters 2 & 3, in this case it is in fact a double quote that I am looking
to replace.
> I'm not really clear about what your trying to do but try using
>
> tempVarBody = Replace(rst("ShortMessage"),"\"","\\\"")
>
> Chineme Nnamdi