Using DropBox for Faster Mobile Development

Ken Ray kray at sonsothunder.com
Sat Feb 18 10:56:02 CST 2012


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: kray at sonsothunder.com
Web Site: http://www.sonsothunder.com/	



More information about the use-livecode mailing list