Quote:
Originally posted by wossname
I was thinking that too, but weirdly the bit highlited in blue does work (see original code again). And I haven't a clue why.
Why should one work and the other not? They are doing pretty much the same thing anyway (removing characters that would confuse the filesystem).
The only difference I can see is the escape sequence in the red code. But surely that is handled by the precompiler.
It works because its being concatenated and assigned to another variable. Thats how the strings work.