Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Copying an Object
Message
From
04/05/2005 20:52:11
 
 
To
04/05/2005 13:58:29
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01010933
Message ID:
01011136
Views:
19
>I have an object that came from a scatter of a table:
>
>scatter name mvar memo
>
>When I copy mvar to mvar2 (mvar2=mvar), then make a change to mvar.cust_id, mvar2.cust_id also changes (as I guess they are both references to the same data). How can I change mvar without changing mvar2 (ie; just make a copy)?

Another approach is just to SCATTER twice originally. Perhaps:

scatter name mvar memo
scatter name mvar2 memo

Or if you needed several, scatter them into a collection or array.

-- Randy
Previous
Reply
Map
View

Click here to load this message in the networking platform