Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to make a copy of scattered name object
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Title:
How to make a copy of scattered name object
Miscellaneous
Thread ID:
00689032
Message ID:
00689032
Views:
76
Hi all,

How can I make a copy of a scattered name object that isn't a reference to the original object?

Eg:

select mytable
scatter name oData
oTemp = oData && This only creates a reference. What I need is a copy!
? oData.name
> "Justin"
oData.name = "Bon"
? oTemp.name
> "Bon" && This should still be "Justin"

I haven't really got the time to create a proper data class. Any help would be greatly appreciated!
Justin

No I ain't doin' much, Doin' nothing means a lot to me...
(Bon Scott)
Next
Reply
Map
View

Click here to load this message in the networking platform