Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problems with collections
Message
From
21/10/2008 22:42:34
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
To
21/10/2008 22:35:01
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01356180
Message ID:
01356196
Views:
30
>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform