Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cloning Objects and Comparing
Message
From
24/03/2005 15:42:55
 
 
To
23/03/2005 10:04:48
Moacyr Zalcman
Independent Consultant
São Paulo, Brazil
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 7
OS:
Windows 2000 SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00998412
Message ID:
00998990
Views:
17
Hi,

Not what you asked for, but perhaps worthy a second look: using arrays instead of objects.
Scatter is slightly faster to arrays, acopy() works as an easy clone() and iterating over the whole "record" to compare is faster. Arrays are not as selfdescribing, but they have a certain charm for the specific uses you asked for <g>. Mapping from row to fieldname is even easier than the code to walk across objects.

my 0.02 EUR

thomas
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform