text in fields (CR/LF, CR, LF) which is correct?
bvlahos at jpl.nasa.gov
Thu Aug 29 23:43:00 EDT 2002
My understanding is that OS X will make either cr=return or linefeed
depending on what application is generating it. Traditional MacOS
application continue to make "return" while command line apps make
linefeeds. I thought that Rev 1.1.x made returns but don't know about
On Thursday, August 29, 2002, at 04:10 PM, Kee Nethery wrote:
>> 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.
> Thanks everyone.
> Revolution team:
> 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".
> kee nethery
> use-revolution mailing list
> use-revolution at lists.runrev.com
More information about the Use-livecode