Hi,
I am trying to search for " in a string using the Instr function. When using the following syntax it returns an error stating that I neeed to have double quotes..
Explanation: to escape a " just double it up as ""
Example:
[tt]myString = "This string has a "" in it"[/tt]
[tt] ^ appears as one " in the string[/tt]
So in your instr():
[tt]InStr(mystring, """")[/tt] "" : start string & end string quotes " : escape next quote
" : actual quote char
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.