Re: setText with line feed
Greg Viger wrote:
>[snip] When I add a {13} in the
>middle of the string I get a system character inserted. When I try and add
>a "\n" in the string I get the error: "sequence to be poked must only
>contain atoms", from machine.e, allocate_string().
Your problem stems from the fact that you are putting length-1 sequences
("\n") into a sequence, rather than atom values ('\n').
"\n" = {10}
'\n' = 10
"\r" = {13}
'\r' = 13
Section 2.1.2 ("Character Strings and Individual Characters") of REFMAN.DOC
deals with the differences between single-quoted and double-quoted chars.
Hope this helps,
Gabriel Boehme
|
Not Categorized, Please Help
|
|