[OT] reOrdering text

J. Landman Gay jacque at hyperactivesw.com
Thu Jan 17 15:49:48 EST 2013


On 1/17/13 12:28 PM, Robert Sneidar wrote:
>
> It's my understanding that cr is just a cr regardless of platform. I
> may have it backwards.

Yup, backwards. :) "Cr" and "return" are synonyms and produce the same 
thing, which is ascii 11 (linefeed, the unix convention). There is no 
ascii 13 (carriage return) or Windows endings (CRLF) unless you put 
binary data into the stack or script it using numToChar(13).

When importing text files, LiveCode translates all OS-native line 
endings to ascii 11. When exporting to a text file, it translates all 
linefeeds back to the native line endings.

Importing/exporting as binary doesn't translate line endings.

-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com




More information about the use-livecode mailing list