NeoTechni Well-Known Member Licensed User Longtime User Apr 2, 2012 #1 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"
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"
J Jost aus Soest Active Member Licensed User Longtime User Apr 2, 2012 #2 I miss the double quotes, too!
specci48 Well-Known Member Licensed User Longtime User Apr 3, 2012 #3 B4X: Label1.Text = "Hello " & Chr(34) & "world" & Chr(34) specci48
klaus Expert Licensed User Longtime User Apr 3, 2012 #4 This works too: B4X: Label1.Text = "Hello " & Quote & "world" & Quote Best regards.
R rgately Member Licensed User Longtime User Apr 3, 2012 #5 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.
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.
Erel B4X founder Staff member Licensed User Longtime User Apr 4, 2012 #6 I hope that this feature will be added in one of the next versions. In the meantime you can also use a workaround such as: B4X: Label1.Text = "Hello ~world~".Replace("~", QUOTE) This is useful in longer strings.
I hope that this feature will be added in one of the next versions. In the meantime you can also use a workaround such as: B4X: Label1.Text = "Hello ~world~".Replace("~", QUOTE) This is useful in longer strings.