Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP Container doesn't go away
Message
From
07/05/2007 13:51:15
 
 
To
07/05/2007 12:01:45
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01223086
Message ID:
01223132
Views:
16
>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

What about container? Does it go away or not? If not, then, probably, you have a reference to it, e.g. form property that you assigned to this object:
ThisForm.Myproperty=thisform.parentcontainer.acontainer1
Edward Pikman
Independent Consultant
Previous
Reply
Map
View

Click here to load this message in the networking platform