Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to make a copy of scattered name object
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Titre:
How to make a copy of scattered name object
Divers
Thread ID:
00689032
Message ID:
00689032
Vues:
75
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)
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform