
16 Apr
2013
16 Apr
'13
12:10 p.m.
Hi Gerd
Maybe this is to simple, for example, you will not be able to use Strings containing a semicolon. Could this be the reason why Steve coded it more complex?
The Xpm file part is tricky because semicolons and spaces are sometimes significant. You need to be able to handle something like this. [_polygon] Type=0x14 Xpm="32 2 4 1" "; c #7BCA6A" "# c #7B956A" "3 c #BDCA8B" "4 c #BDCA8B" ";;;;;;;;;;;;###;;;;;;;;;;;;;;;;;" ";;;;;;;;;;;#;;##;;;;;;;;;;;;;;;;" So I think that using setCommentChar() is out. But checking for comments only at the beginning of the line would be OK I think. Probably at the end too if it doesn't already. ..Steve