Cancel a repeat with a button

Stephen Cox stephen at networkxfla.com
Wed May 13 23:00:54 EDT 2009


Why not just set a global variable and check it in the loop? Have the cancel
button set the variable to True when pressed.


On 5/13/09 10:01 AM, "Ludovic Thébault" <ludovic.thebault at laposte.net>
wrote:

> Hello,
> 
> How interrupt a repeat loop by a button ?
> While a copy of a lot of files with rev, i want the user can cancel
> the copy.
> 
>   repeat for each line l in it
>            if char 1 of l <> "." then
>              put convertpath(tstack&"/"&l) into tpath1
>              put convertpath(tlibrary&"/") into tpath2
>              get shell("cp "&tpath1&&tpath2)
> end if
> end repeat
> 
> Thanks.
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution

-- 
Stephen Cox
Chief geek | Networkx | networkxfla.com




More information about the use-livecode mailing list