Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
On Shutdown Not Working
Message
 
To
12/08/1999 13:47:51
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00253066
Message ID:
00253126
Views:
27
>Bruce,
>
>I'm now more confused than before. Why have an "X" if it dosen't work.

It does indeed work :) Let me try to explain a little better:

In a top-level, when you close from the title bar (like the 'X', or icon double-click, etc., two events fire, in this order:

Queryunload
Destroy

The 'X' closes the TL (or any other form), but you still have to stop the event processing with a CLEAR EVENTS somewhere. Either of the above two events will work for this. Try the CLEAR EVENTS in either place, you will see termination of form, event processing, and code following READ EVENTS in main program will continue to run.
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Previous
Reply
Map
View

Click here to load this message in the networking platform