Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Undestroyed objects in forms
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00086484
Message ID:
00090309
Vues:
44
>Jim,
>If I create an object that is a modeless form, show the form, then exit the routine that creates the form (making the object variable go away), does the form completely clean up after itself when it exits. I see it running the Unload() Event, implying that all the objects on the form are destroyed. But does VFP completely dereference the form after the event finishes?
>
>Codebook has an object that tracks forms, so I suppose I could alter it so that it does something like oLastForm = .NULL. on the form after it has closed. I haven't looked at that code for awhile, so I'm uncertain how much work would be involved.
>
>Ed

Ed,

Yes if I,
LOCAL oForm
oForm = CreateObject("MyForm")
oForm.Show()
RETURN
Then as soon as the RETURN executes the form is destroyed.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform