>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.