[futurebasic] Re: Break ... Until

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

From: tatewake@... (Terence Jordan)
Date: Fri, 26 Dec 1997 20:53:24 -0400
--
>> LOCAL FN beeper
>>   DO
>>     BEEP
>>   UNTIL x=1
>> END FN

after your first TIMER, everything hits the fan, 'cuz x never equals 1 and
it never exits the FN.

You're not starting a new thread for FN beeper, like you may be thinking,
and TIMER will not interrupt the current set of commands, and you never get
back to the HANDLEEVENTS; do you see where I'm going with this?

just re-write FN beeper as such:
LOCAL FN beeper
 BEEP
END FN

And it _should_ work.



-- Terence Jordan (tatewake@...)
Inspired Software. http://inspired.netstreet.net/
Macintosh, Dos, Windows, and BeOS software solutions.
Phone: 407-728-7563
............................................
. New: Renegade Space Ninja for Macintosh! .
.      Visit our page for more info.       .
............................................