Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Collection again
Message
De
21/01/2004 12:00:10
 
 
À
21/01/2004 10:40:19
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00868899
Message ID:
00869079
Vues:
17
>Yes, this seems what happens internal. In other words you mean that the Item assigned first to the property
>will be released when I assign an other item.

Yes.

>The problem is that that happens to properties of the collection only. Properties of other objects / Vars will
>not show the same result.

Bacause it is a bug, and a bug, normally, happens only to one situation:
CLEAR

locol = NEWOBJECT("Collection")

locol.ADD(CREATEOBJECT("textbox1"),'Obj1')
locol.ADD(locol(1),'Obj2')
ADDPROPERTY(m.locol,"collObject",locol(1))	
? locol.COUNT		&& 1
* no bug
REMOVEPROPERTY(m.locol,"collObject")	&& this remove the property and the reference
? locol.COUNT		&& 1
ADDPROPERTY(m.locol,"collObject",locol(1))
? locol.COUNT		&& 1 !!!!
* the bug
locol.collObject = NULL			&& this write null on property and release all items reference to object 
? locol.COUNT		&& 0 !!!!
Fabio
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform