Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problems with collections
Message
De
21/10/2008 22:42:34
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
21/10/2008 22:35:01
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
MS SQL Server
Divers
Thread ID:
01356180
Message ID:
01356196
Vues:
29
>Dragan --
>
>However, as I noted, I specifically don't want an object reference. What I want is to make a copy of all the values in the collection so that later I can compare those values to the current values. Saving an object reference ... means the two are always identical.

If copy is what you want, I don't see much wrong with your code, except not using .item(n) on the this.fields to get a member; this way of default method (i.e. if you pass n to the collection itself, it actually calls collection.item(n)) just looks too VB to me. May work with Fox collections, too, but I always reference collection.item(n), just to be clear that this is a collection, not a function name.

Other than that, it should work; what fixes I inserted aren't really fixes, simply more to ease the debugging if it doesn't work.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform