Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to get rid of a container in a container?
Message
De
18/01/1999 17:01:18
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00176899
Message ID:
00177364
Vues:
40
>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform