Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
On Shutdown Not Working
Message
 
À
12/08/1999 13:47:51
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00253066
Message ID:
00253126
Vues:
28
>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform