Handling quotes in strings

NeoTechni

Well-Known Member
Licensed User
Longtime User
In VB, it let you set strings with quotes in them by replacing double quotes with a single quote instead of using it to end the string

ie:

tempstr = "Hello ""world"", how it it?"
text value is Hello "world", how it it?

or

tempstr = "Hello ""world"""
text value is Hello "world"
 

specci48

Well-Known Member
Licensed User
Longtime User
B4X:
Label1.Text = "Hello " & Chr(34) & "world" & Chr(34)

specci48
 

rgately

Member
Licensed User
Longtime User
I miss the double quotes too. Far more compact and easier to code than & chr(34) & or & quote &. But at least there's a way.
 
Top