Stop a repeat script
Thomas McCarthy
tominjapan at excite.com
Thu Jun 16 19:23:32 EDT 2005
A good idea I picked up from somewhere is to build in a time limit on repeats whenever possible:
--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
_______________________________________________
Join Excite! - http://www.excite.com
The most personalized portal on the Web!
More information about the use-livecode
mailing list