Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: David Mustakim
  Where is David Mustakim?
 Jakarta
 Indonesia
 David Mustakim
 To: Gene Wirchenko
  Where is Gene Wirchenko?
 Kamloops
 Canada
 Gene Wirchenko
 Tags
Subject: RE: clear events
Thread ID: 395882 Message ID: 395958 # Views: 27 # Ratings: 0
Version: Visual FoxPro 9 SP2 Category: Forms
Date: Tuesday, January 21, 2014 8:52:02 PM         
   


> > My understanding as per Help is CLEAR EVENTS simply cancels the "immobile / wait-state for events" called for by READ EVENTS. Once the "immobile/wait" instruction is cancelled the execution continues to whatever there are instructed to do thereafter.
>
> I know. The problem is that the code after the clear events is getting executed to a return before the code after the read events gets executed.
>
> [snip]
>
> Sincerely,
>
> Gene Wirchenko



I'm sorry... can't help being baffled. Not sure why you expect the CLEAR EVENTS should have stopped "things" right there and then. The way I see it: -- IMHO so CMIIW -- In your test case the queryunload event (which is a ONE WHOLE EVENT ENTITY was started and therefore WAS DESTINED TO COMPLETE itself; unless there was "something" the system did or you did that told it NOT TO. Clearly the "CLEAR EVENTS" statement you inserted was not one such "something" since it simply is not one such "STOPPER" to what comes after, as a "RETURN" statement would have been; especially so as it was running within the queryunload event that HAD BEEN triggered as one whole event package. Within this one last sub-statement of mine I was wondering myself but would not be too surprised if queryunload event - being a system triggered event - was indeed designed to operate rather differently than for instance a "click" event would.

Regards,
David

ENTIRE THREAD

clear events Posted by Gene Wirchenko @ 1/20/2014 11:44:20 PM
RE: clear events Posted by David Mustakim @ 1/20/2014 11:59:51 PM
RE: clear events Posted by Gene Wirchenko @ 1/21/2014 6:36:20 PM
RE: clear events Posted by David Mustakim @ 1/21/2014 8:52:02 PM
RE: clear events Posted by Stefan Wuebbe @ 1/21/2014 7:10:37 AM
RE: clear events Posted by Gene Wirchenko @ 1/21/2014 6:34:10 PM
RE: clear events Posted by Stefan Wuebbe @ 1/21/2014 9:13:41 PM