Page 1 of 1

" character in strings

Posted: Sun Apr 19, 2015 10:02 am
by psf
Hi everyone, if I have to use in a string assignement the " character?

es. String1= "The man said "HELLO""
How could I do?
Thanks

Re: " character in strings

Posted: Sun Apr 19, 2015 10:22 am
by kersing
Use the backslash (\) to 'escape' the double quotes (")

Your example would become "The man said \"Hello\"".

Re: " character in strings

Posted: Sun Apr 19, 2015 8:57 pm
by psf
Ok thanks