Discussion:
Getting out of a loop
(too old to reply)
evilaro
2008-11-03 19:48:13 UTC
Permalink
To all:


I have some very long loop processes on a aplication
which do their job, They take many hours
and since when restarted will do only what it is not
done, I would like to be able to stop it at anytime.


What would be best aproach on canceling a
loop?


for n=1 to 100000000000
? n
next n

Thanks

Emilio
Mervyn Bick
2008-11-03 19:55:56 UTC
Permalink
Post by evilaro
I have some very long loop processes on a aplication
which do their job, They take many hours
and since when restarted will do only what it is not
done, I would like to be able to stop it at anytime.
What would be best aproach on canceling a
loop?
for n=1 to 100000000000
? n
next n
Have a look at interupt.wfm in the dUFLP.

Mervyn
Rich - AutoTraker Inc.
2008-11-03 20:33:13 UTC
Permalink
this.pushbutton1 = new pushbutton(this)
with (this.pushbutton1)
onClick = {;form.lQuit=true}
endwith


lQuit = false
for n=1 to 100000000000
? n
_app.executeMessages()
if form.lQuit
exit
endif
next n
Post by evilaro
I have some very long loop processes on a aplication
which do their job, They take many hours
and since when restarted will do only what it is not
done, I would like to be able to stop it at anytime.
What would be best aproach on canceling a
loop?
Thanks
Emilio
Loading...