[futurebasic] Re: Break ... Until

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : December 1997 : Group Archive : Group : All Groups

From: tedd <tedd@...>
Date: Sat, 27 Dec 1997 09:51:03 -0500

>>Part of the problem is dealing with ON TIMER. It is it's own event loop.
>>I try to not use it ever.
>Thanks for the advice.
>Are you suggesting that the Timer locks something?

Yes, that is what I'm saying. Whe n you use ON TIMER you set up another
event loop that you haver no control over. You can never turn it off! As
such, your program, IMHO, becomes unnecessarily complicated.

Try to think of another way to accomplish the same thing. The only
situation I ever saw that needed an ON TIMER thingie was Ross' marching
ants. I never figured a way around that. However, for the exception of
things like that, you should never be forced to use ON TIMER.

>I want do something, say, every 10 minutes.
>I could grab the current time and compare it to some elapsed time, but on
>Timer appeared to be easy.

Your first assumption was correct. It is better to place a FN within the
HANDEEVENTS loop to check for time elapsed.

And, this is really not a problem with FB, but just an added feature that
works well in limited cases, but not so good for large programs.


<mailto:tedd@...>	               http://sperling.com/