Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How do I insert a single quote into a string?
#1
Hi,

How do I insert a single quote (') into a string?

I tried this but it does not work

str sout
...
s[0] = ''''

TIA

- avi
#2
I found to put the ascii code into square brackets, and then assign it, like this:

s[0] = [39]

but the syntax was not accepted.

avi
#3
s[0]=39

or
s.insert("'" 0)
or
s.replace("'" 0)


Forum Jump:


Users browsing this thread: 1 Guest(s)