quotes in a string

micheleBr

Member
Licensed User
Longtime User
Good morning,
I want set a string variable with something like:

<p><span style="color: #ff9900; font-family: comic sans ms,sans-serif; font-size: xx-large;">test!</span></p>

But where there are this character: "
I have an error...
Help please :) !!!
tnx!
 

mc73

Well-Known Member
Licensed User
Longtime User
You can use the static variable QUOTE or chr(34). Never the less, I think I saw an Erel's post these days, where is said that we can insert the " inside a string, but I cannot remember right now the link :sign0013:
 
Upvote 0

mc73

Well-Known Member
Licensed User
Longtime User
In your case you can also use single quotes (') instead of double quotes.
This is true. In general, I've seen some inconsistencies moving from " to ', I think it was in javaScript, but can't remember now exactly. Anyway, nothing to do with b4a (actually seen it in php's echo).
 
Upvote 0
Top