Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to make a copy of scattered name object
Message
From
13/08/2002 11:09:16
 
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00689032
Message ID:
00689151
Views:
25
Justin,

If you are need the copy immediately after the scatter, you can simply scatter twice. I don't really think you will see a negative performance hit doing this.
scatter name oData
scatter name oTemp
>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!
Steve Gibson
Previous
Reply
Map
View

Click here to load this message in the networking platform