" character in strings

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 5.
To post in this forum you must have a registered copy of Flowcode 5 or higher.

Moderator: Benj

Post Reply
User avatar
psf
Posts: 45
Joined: Mon Jun 25, 2007 9:44 pm
Location: Italia
Has thanked: 6 times
Been thanked: 2 times
Contact:

" character in strings

Post 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

kersing
Valued Contributor
Valued Contributor
Posts: 2045
Joined: Wed Aug 27, 2008 10:31 pm
Location: Netherlands
Has thanked: 553 times
Been thanked: 1081 times
Contact:

Re: " character in strings

Post by kersing »

Use the backslash (\) to 'escape' the double quotes (")

Your example would become "The man said \"Hello\"".
“Integrity is doing the right thing, even when no one is watching.”

― C.S. Lewis

User avatar
psf
Posts: 45
Joined: Mon Jun 25, 2007 9:44 pm
Location: Italia
Has thanked: 6 times
Been thanked: 2 times
Contact:

Re: " character in strings

Post by psf »

Ok thanks

Post Reply