Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to get rid of a container in a container?
Message
From
18/01/1999 17:01:18
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00176899
Message ID:
00177364
Views:
38
>Dragan,
>
>You need to do both removeobject and then NULL the array to egtr id of the inner most containers

RemoveObject()ing proved to be enough - I've just checked in the debugger. In the moment between zapping the array and repopulating it, I used to see a controls[] array of controls which belonged to the mid-level containter. It's empty now. I guess I have no phantom objects anymore. Anyway, before repopulating I redimension the array to 1, and then in each step redimension it to 1, 2, 3 etc. Though, I've checked _before_ that, and .controls was empty. Just like David said, RemoveObject()ing a container gets rid of all of its members at once, provided there are no dangling references (which I checked first). Works just fine now.

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