I want to remove all the apostrophes from a string.
I use replace(string,"'"," "
but I get a
"Cannot use parentheses when calling a Sub" error.
Response.Write"<script language=javascript>"&vbcr
Response.Write"aryProj = new Array();"&vbcr
do while not rs.eof
strtemp=rs("field1"
replace (strtemp, "'", " "
Response.write"aryProj[aryProj.length]='"&rs("field2"&","&rs("field3"&","&temp&"';"&vbcr
rs.MoveNext
loop
rs.Close
response.write"</script>"&vbcr
The recordset is instantiated earlier. As you can see, I'm creating a js array using serverside vb. This should have nothing to do with the replace error.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.