O origami Member Licensed User Apr 26, 2008 #1 Hi all, I've got a quick and easy question : How to use double quotes in a string ? I tried the usual stuff (using backslash; using 2 doubles quotes), but it does not seems to be that. Thank you very much for your help. And congratulations to the developers for this great software !
Hi all, I've got a quick and easy question : How to use double quotes in a string ? I tried the usual stuff (using backslash; using 2 doubles quotes), but it does not seems to be that. Thank you very much for your help. And congratulations to the developers for this great software !
Erel B4X founder Staff member Licensed User Longtime User Apr 27, 2008 #2 You should use chr(34): B4X: "This is a " & chr(34) & "double quote" & chr(34) Or: q = chr(34) "This is a " & q & "double quote" & q
You should use chr(34): B4X: "This is a " & chr(34) & "double quote" & chr(34) Or: q = chr(34) "This is a " & q & "double quote" & q
NeoTechni Well-Known Member Licensed User Longtime User Nov 8, 2011 #4 In VB, we just put 2 of the double quotes in and it treats it as 1 instead of ending/starting the string. ie" debug.write "Hello ""Jim""" prints Hello "Jim" Is there anyway to change it to that? It's much more convenient.
In VB, we just put 2 of the double quotes in and it treats it as 1 instead of ending/starting the string. ie" debug.write "Hello ""Jim""" prints Hello "Jim" Is there anyway to change it to that? It's much more convenient.
Erel B4X founder Staff member Licensed User Longtime User Nov 8, 2011 #5 This thread is for Basic4ppc and it is from 2008. Please start a new thread for this request in the proper subforum.
This thread is for Basic4ppc and it is from 2008. Please start a new thread for this request in the proper subforum.