Backslash in quotes

Previous topic - Next topic

MrTAToad

I have found that having a backslash in quotes (something like "\") greys the rest of the text on the line out, but will compile the code.

Slydog

Confirmed!
I assume it's because the backslash starts an escape sequence, so the next character is interpreted differently.
Putting a space (or any character) after works ("\ "), but putting two backslashes doesn't work ("\\").
The IDE isn't seeing the last quote, so draws the remainder of the line in the 'String' colour.
My current project (WIP) :: TwistedMaze <<  [Updated: 2015-11-25]

MrTAToad

Yes thats - I had expected \\ to solve the problem, but it doesn't  :P

Kitty Hello

use char$() then. (22 for quotes?) :D

Minion

CHR$(34) for a quote :) and ive been adding a lot of DATA statements with quotes in so the \" has been invaluable too me just lately.