Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Collection again
Message
From
21/01/2004 05:33:35
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Collection again
Miscellaneous
Thread ID:
00868899
Message ID:
00868899
Views:
57
Hi,

I have the collection trouble day

try the following
locol = NEWOBJECT("MyCollection")

locol.ADD(NEWOBJECT("EMPTY"),'Test1')
locol.ADD(NEWOBJECT("EMPTY"),'Test2')
locol.ADD(NEWOBJECT("EMPTY"),'Test3')
?locol.COUNT 			&&3
locol.goTest = locol(2)
?locol.COUNT 			&&3
locol.goTest = locol(1)
?locol.COUNT 			&&2

DEFINE CLASS MyCollection AS COLLECTION
 goTest = NULL
ENDDEFINE &&MyCollection
On my comp, the last "?" command returns 2. One item is gone.
This happens only to properties of the collection itself. On vars or other objects properties count will remain on 3.


Can you reproduce it?
Is this a know behaviour?

I run SP1 on a W2K machine
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Next
Reply
Map
View

Click here to load this message in the networking platform