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
locol.goTest = locol(2)
?locol.COUNT
locol.goTest = locol(1)
?locol.COUNT
DEFINE CLASS MyCollection AS COLLECTION
goTest = NULL
ENDDEFINE
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.
OffThere is no place like [::1]