text in fields (CR/LF, CR, LF) which is correct?
kee at kagi.com
Thu Aug 29 18:45:01 CDT 2002
>Kee Nethery <kee at kagi.com> wrote:
>>6. Is there some hack, some magic moves I can perform in script to
>>get Revolution to display the lone returns?
>Because of the cross-platform capabilities, Rev displays ascii 13
>and linefeeds variously on different platforms. To get the proper
>results no matter which platform the stack is on, try:
> replace numtochar(13) with cr in fld <myFld>
>By using the built-in "cr" constant, Rev will substitute the right
>number of returns and/or linefeeds for whatever OS is running. In
>other words, let the engine do the work.
On Mac OS X, cr = linefeed
On Mac OS 9, cr = return
Mac OS X is being treated as Unix.
this means that before I store data back into the database, I need to
replace all the linefeeds with returns.
CR as a constant is not in the paper docs.
The display of text in a text field on a per platform basis did not
appear in the docs for "field".
More information about the use-livecode