Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to make a copy of scattered name object
Message
De
13/08/2002 11:09:16
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00689032
Message ID:
00689151
Vues:
24
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform