Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to get rid of a container in a container?
Message
From
16/01/1999 18:25:01
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00176899
Message ID:
00176934
Views:
34
>Hi Dragan,
>
>These containers are added to the inner container via AddObject() or NewObject(), right? And beside the reference in the inner container itself (since the innermost containers are members of that container) you also have a row array?

AddObject - VFP5. Actually, the inner container has an array property, and I I do it like this:
cntOut.cntMid.rowsi]=addObject("innermostContainer")
>
>>- removeobject: cntOut.CntMid.RemoveObject("cntOut.cntMid.rows[i]")
>
>I'd use
>
> cntOut.CntMid.RemoveObject(cntOut.cntMid.rows[i].Name)

I'm a blind fool. Help says "NAME of the object". It doesn't say anything else, though :).

>Be aware that in VFP 6 this doesn't necessarily work when you initiate the release sequence from one of the inner most containers or it controls.

My objects believe their classes won't force them to saw the tree they're sitting on, which they really do not.

No, the cntMid should simply zap the array and repopulate it. Worked OK except for the zapping.

Thanks to you and Dave. Ctrl+F2 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
Reply
Map
View

Click here to load this message in the networking platform