Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Toolbar, removing container
Message
From
30/10/2017 14:38:54
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
30/10/2017 13:09:44
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012 R2
Network:
Windows Server 2012 R2
Database:
Visual FoxPro
Application:
Desktop
Virtual environment:
VMWare
Miscellaneous
Thread ID:
01655282
Message ID:
01655286
Views:
39
>I can "sort of" remove the container with a call from the command button's click like:
>
>THIS.PARENT.PARENT.RemoveObject(THIS.PARENT.Name)
>
>- that is, fire the .RemoveObject() method of the toolbar to remove the container
>
>- the container does indeed disappear from the toolbar but it is still in the toolbars .Objects() collection
>
>I suspect that the reason I cannot get rid of it entirely is because I am trying to destroy the container from a call from within the container

You can't get rid of a reference to an object which was defined at the class level. However, that reference may become null - check in the debugger.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform