Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Collection class clarification
Message
De
06/05/2003 14:04:56
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Collection class clarification
Divers
Thread ID:
00785502
Message ID:
00785502
Vues:
61
Hi all,

Does the collection class release objects automatically? It looks like it does but is this a safe assumption and I don't have to worry about dangling references/objects?
loForm1 = CREATEOBJECT("form")
loCol = CREATEOBJECT("collection")
loCol.Add(CREATEOBJECT("form"),'1')
loCol.Add(loForm1,'2')

? loCol.Remove('2') && this does not actually release loForm1 and ...
? loForm1.Name      && i can still do this.

* ? loCol('1') = null && this commented line of code is valid
? loCol.Remove('1') && but does this release createobject() object
ramil
~~ learning to stand still
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform