It does not. I just tested this.
ON mouseUp pMouseBtnNo
put "This is a test" & cr into theText
put "this is another test" after theText
put line 1 of theText into theTestText
breakpoint
put line 2 of theText into theTestText
breakpoint
END mouseUp
In each case, theTestText does not contain a carriage return. It IS a fact
however, that if you filter the lines of something and there is only one line
that matches the filter, the carriage return will be included! This has bitten
me in the butt more than once, so I have gotten into the habit of getting line
1 of a filtered string for the whole line, and word 1 to -1 of item x of
something because if it is the last item in a line and the line has a carriage
return, it will be included in the item.
Bob
On Feb 18, 2012, at 7:57 AM, Michael Doub wrote:
>
> Interesting, I did not realize that livecode included the return character as
> part of the line chunk.
> Both of following work as long as you delete the last character. I tested
> this on both 5.5 and
> 5.0.2.
>
> on mouseUp
> put URL "http://dl.dropbox.com/u/43797494/LiveCode/LoadLinks" into list
> put line 1 of list into StacktoLoad
> delete the last character of StacktoLoad
> go URL StacktoLoad
> end mouseUp
>
> on mouseUp
> put URL "http://dl.dropbox.com/u/43797494/LiveCode/LoadLinks" into list
> repeat for each line x in list
> delete the last char of x
> put x into StacktoLoad
> exit repeat
> end repeat
> go URL StacktoLoad
> end mouseUp
>
> _______________________________________________
> use-livecode mailing list
> [email protected]
> Please visit this url to subscribe, unsubscribe and manage your subscription
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode