Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Form won't stay open
Message
De
19/05/2009 19:02:47
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01400297
Message ID:
01400844
Vues:
63
This message has been marked as a message which has helped to the initial question of the thread.
>>>Stefan,
>>>
>>>Thank you very much for the solution!
>>
>>My pleasure. Although I just saw a bug in the previous example: as you may already have seen, both sample forms do not handle getting closed via upper-right X button, for instance by doing a "Clear Events" in Destroy()
>>
>>
>>Regards
>>-Stefan
>>
>
>Yes, I noticed this and I was going to put the CLEAR EVENTS in the QUERY UNLOAD method. Thank you.

Keep in mind that .QueryUnload() fires only on close box. So if you have a close commandbutton, it won't. Destroy() is a better candidate - it is sure to fire, no matter how you want to close the form. Or, if you already have cleanup code there, .Unload() - fires the last on the way out (IIRC - if .load() is first...).

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform