Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Undestroyed objects in forms
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00086484
Message ID:
00090309
Views:
43
>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform