Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to remove the " character in string
#1
I want to remove the " character from a string. like the following:

str s1="This is the "first" line."
s1.findreplace(""" "" 8)

but QM2 reminds me there is error.
HOw to deal with the " character and the final result should be
s1="This is the first line."
Thanks.
gear
#2
In strings, use two ' instead of ". Two ' are automatically recognized as ".

Code:
Copy      Help
str s1="This is the ''first'' line."
s1.findreplace("''")

http://www.quickmacros.com/help/Languag ... STANT.html


Forum Jump:


Users browsing this thread: 1 Guest(s)