Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Collection again
Message
De
21/01/2004 05:33:35
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Collection again
Divers
Thread ID:
00868899
Message ID:
00868899
Vues:
55
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]
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform