Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using the collection class
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Titre:
Using the collection class
Divers
Thread ID:
00899345
Message ID:
00899345
Vues:
41
Am I doing this wrong, does this create a different oItem for each iteration or does it just create a link to the same object each time.

Thanks,
Nick



oCol=CREATEOBJECT("Collection")
oItem=CREATEOBJECT("Empty")
AddProperty(oItem, "MyProp1", "One")

FOR nCount=1 TO 10000
oCol.Add(oItem)
ENDFOR
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform