text in fields (CR/LF, CR, LF) which is correct?

Kee Nethery kee at kagi.com
Mon Sep 2 14:51:01 EDT 2002


>The CR constant appears in my Transcript dictionary. If you can't 
>find it under CR, try looking for "return". They are synonyms, so 
>they both point to the same entry.

Weird. I am sure I searched for CR and did not get any hits. But, 
when I search for Return I see it and when I go to a different entry 
and then search for CR it returns me to the card that discusses it.

Wish I could copy and paste the text out of the dictionary.

Here is how I would change the existing dictionary entry.

PS: [interesting that for the return variable, neither example uses 
"return" but instead the examples use the "proper" term "linefeed"]

------------------------------

I'd change the last paragraph in the dictionary entry to read:

The line feed character is the standard end-of-line delimiter for 
text files on Unix systems. The end-of-line delimiter for text files 
on Mac OS systems is a carriage return, and the end-of-line delimiter 
for text files on Windows systems is a carriage return followed by a 
line feed. For all these operating systems, within a Revolution text 
field the end-of-line delimiter is always a line feed.

For all these operating systems, when text from a field is saved into 
a text file, the end-of-line delimiter within Revolution is converted 
to the platform specific end-of-line delimiter for text files. Any 
math performed on the individual characters within a Revolution text 
field will not produce the same result when the text is saved into a 
text file on Mac OS or Windows because the end-of-line characters in 
the text file will differ from the end-of-line characters within the 
text field.



(Assuming this is a correct synopsis)
Kee Nethery


>
>The dictionary entry also explains about the cross-platform differences.
>
>Sarah
>
>On Saturday, August 31, 2002, at 03:49  am, Kee Nethery wrote:
>
>>Since CR as a constant is not documented anywhere that I can find 
>>in my docs, I'm looking for someone on the various non-Mac OS X 
>>platforms to run the following statement in their message box (on 
>>windows, on Linux/Unix, on Mac OS 9) and return the results. Just 
>>want to make sure CR really does vary with each platform.
>
>
>_______________________________________________
>use-revolution mailing list
>use-revolution at lists.runrev.com
>http://lists.runrev.com/mailman/listinfo/use-revolution




More information about the use-livecode mailing list