[futurebasic] Re: [FB] Window display problem

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : January 2005 : Group Archive : Group : All Groups

From: tedd <tedd@...>
Date: Mon, 31 Jan 2005 11:28:29 -0500
Alain said:

>I'm not sure it is good idea to have more than one HandleEvents 
>statement in your program regardless of the circumstances that might 
>make it look handy. I even thought it was a no-no.

You are correct -- that is a "no-no".

While I've been tempted at times, I have never encountered a problem 
that couldn't be handled with a single HandleEvent statement.

Even with routines that have numerous processing steps or long 
communications, one can always place a flag or counter within the 
routine such that it breaks out, passes through the single 
HandleEvent and checks to see if something else has happened (i.e, 
the user said "STOP").

It may seem a bit odd to be within a lengthy routine and then step 
out to check if other things require attention, but that's the way 
things are done.

tedd
-- 
--------------------------------------------------------------------------------
http://sperling.com/