Stop a repeat script

Erik Hansen erikhans08 at yahoo.com
Fri Jun 17 14:48:21 EDT 2005


--- Damien Girard <dam-pro.girard at laposte.net>
wrote:

> > --before entering repeat loop
> > put the ticks + 600 into endtime --(10 second
> timelimit)
> > repeat with i = 1 to somenumber
> > if the ticks > endtime then
> > answer "overtime" --might want to report
> other information to help debug
> > exit repeat
> > end if
> > 
> > do repeat stuff here
> > end repeat
> > 
> > it's only a couple of lines of code, but it's
> saved me many a crash.
> > cheers
> > tom
> > 
> I used already a similar method (but without
> the ticks command), but
> this method is better than my method, I think I
> will use it.

d'accord.

now to put that into a separate handler...

Erik Hansen



erik at erikhansen.org    http://www.erikhansen.org

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


More information about the use-livecode mailing list