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 19:38:38
 
 
To
16/01/1999 18:18:45
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00176899
Message ID:
00176942
Views:
32
>>Hi Dragan,
>>I have a similar form, which dynamically adds/removes containers, each of which contains a variable number of objects, each of which are containers.
>>I have a form based array and use AddObject/RemoveObject by scanning through the array elements. eg.
>>	FOR m.ii = 1 TO ALEN(.a_acddisp, 1)
>>		* remove the display container objects
>>		.RemoveObject("dispBox" + .a_acddisp[m.ii,1])
>>	ENDFOR
>>Each of these 'display boxes' can contain a variable number of display objects.
>>Funny, but removing the dispBox object seems to remove every thing under it automatically without any further code. Seems to work just fine. (60 users on line all day every day) Sorry I can't check the debugger since this program only works 'live' connected to a PABX phone system which I don't have here :-)
>>
>>You could run the thing 1000's of times and see if you're really losing memory, or if it's just a debugger glitch?
>
>No glitch - I've understood now. I must supply object's full name, not the array element which references it - that's what the RemoveObject() wants.
>
>I knew there'll be someone on a Saturday :)

Yep, I saw that reply from Christoff. CYA and PMFJO :-))
Previous
Reply
Map
View

Click here to load this message in the networking platform