debug caracter (") in string
dar
Posts: 15
Hi again!:
I'm trying to write " like a caracter in a string, but when write it, it read that i close the string, for example:
I want to read in parallax serial terminal:
12345"
But if i do:
debug.str(string("12345""))
it considered that i'm starting a new string and don´t compile the code.
Can you help me??
Thanks
I'm trying to write " like a caracter in a string, but when write it, it read that i close the string, for example:
I want to read in parallax serial terminal:
12345"
But if i do:
debug.str(string("12345""))
it considered that i'm starting a new string and don´t compile the code.
Can you help me??
Thanks
Comments
The idea was to put quotes around "+", "*" and "-", "/".
CON Quote = 34
and
Pst.str(string(CR, "Enter ", Quote, "+", Quote, " or ", Quote, "*", Quote))
I was about to say, the numbers are just as meaningful to me as "CR" or "Quote" and if the code is just for me it doesn't matter (but I'd reword it sounded better than the way that came out). But of course, I just posted it here, and a lot of code I write ends up on the forum so I decided to say the following instead.
Good point. I agree. I think I'll start doing it the way you suggest.
Thanks Mike.