[futurebasic] Re: [FB] Watched folder

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : April 1999 : Group Archive : Group : All Groups

From: Rick Brown <rbrown@...>
Date: Fri, 09 Apr 1999 23:02:32 -0500

Paul Bruneau wrote:

> One question, Rick:
>
> What are you doing putting handleevents inside a local function?!? (Or
> was that just for demo purposes)

It was to make sure that the copy can proceed while you're in the loop waiting
for the "in use" flag to go false.  I wanted to write a "stand-alone" function
that simply wouldn't return until the copy was complete.

If you use a state variable, and still periodically call HANDLEEVENTS (in your
main event event loop) while the "in use" flag is set, that will work fine
also.  That's probably a better design, in fact.

- Rick