On Feb 18, 2012, at 9: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

Some places in LC do this - like looking at the result from a URL "post" 
command. That's why I use a simple "trim" function in all my apps:

function trim pWhat
  return (word 1 to -1 of pWhat)
end trim

(I have a more expanded version if I care about things like hard spaces, but 
the basic one works for 99% of the cases I run into).

Ken Ray
Sons of Thunder Software, Inc.
Email: k...@sonsothunder.com
Web Site: http://www.sonsothunder.com/  

_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to