Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Collection again
Message
From
21/01/2004 12:00:10
 
 
To
21/01/2004 10:40:19
Lutz Scheffler (Online)
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00868899
Message ID:
00869079
Views:
18
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform