text in fields (CR/LF, CR, LF) which is correct?
Richard Gaskin
ambassador at fourthworld.com
Fri Aug 30 01:07:01 EDT 2002
J. Landman Gay wrote:
> "Shao Sean" <shaosean at unitz.ca> wrote:
>
>> i use the constant LINEFEED and let the engine determine if it's just 0x10,
>> 0x13 or both..
>
> I think the constant "return" also does the same thing as "linefeed" and
> "cr".
Pretty much, with the exception of its use in "crlf":
Linefeed = ASCII 10
cr/return = ASCII 10 -- the UNIX line ending
crlf = ASCII 13 & ASCII 10
So much confusion surrounds the misnamed constants "return" and "cr", which
suggest ASCII 13 but are actually ASCII 10. I understand that it's there
for compatibility with Mac-specific tools like HC, but it does create
confusion (hence this oft-repeated thread).
--
Richard Gaskin
Fourth World Media Corporation
Custom Software and Web Development for All Major Platforms
Developer of WebMerge 2.0: Publish any database on any site
___________________________________________________________
Ambassador at FourthWorld.com http://www.FourthWorld.com
Tel: 323-225-3717 AIM: FourthWorldInc
More information about the use-livecode
mailing list