Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Form.Destroy()
Message
 
À
05/05/1998 11:05:15
Tim Hockin
Illinois State U - Residential Computing
Normal, Illinois, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00096885
Message ID:
00097048
Vues:
25
>The problem is that I need to do that when the object is Destroyed, independent of the form it is on. The control is designed for multiple use in different settings. I'd like to have it autonomously destroy itself. But it doesn't. the code in it's destroy() method never gets called when the form terminates
>
>>Tim, can you NULL the references in appropriate customControl.object and issue customControl.RemoveObject() from the form method before releasing the form, or I still don't understand what you are trying to do? :)

Oh, I see now, I thought your custom object was outside the form.
Did you trace it starting in Form.Destroy() method? Is it possible that Form.QueryUnload returns .F. by some reasons? I just tested a sample form with custom object and everything went OK, all events were fired.
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform