>Hi All!
>
>I have spent more than 5 hours trying to debug a really strange VFP
>behaviour today.
>
>1. I have a container class based on native foxpro container class
>2. I create another container class based on native foxpro container class
>and I add the previous container object and a native commandbutton.
>3. In the click event of the command button I write:
> This.Parent.RemoveObject("acontainer1")
> WAIT WINDOW VARTYPE(This.Parent.acontainer1)
>
>4. I Create a new form and I add the second container object.
>5. Running the form and clicking on the button after "removing" the
>aContainer1 the vartype returns "O"!
>
>Does anybody know something about this?
>
>Any help would be greatly appreciated.
>
>TIA
This is a little old bug.
For a Class member object, Removeobject() doesn't the complete job,
it leave a empty zombie object.
When you add the "acontainer1" with addObject()/newObject()
then RemoveObject() does the job.
Fabio
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only