Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Object ref vs copying objects
Message
De
10/06/1997 18:48:57
Renato De Giovanni
Via Fractal Information Systems
São Paulo, Brésil
 
 
À
09/06/1997 16:37:15
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00035710
Message ID:
00035881
Vues:
33
>In filer.scx I've found this in Resize method:
>oRef = .Controls[m.i]
>later, in the method code, I see that only the oRef gets changed, i.e.
>anything you do to an object reference, you do to the object it refers
>to. OK, but then how do I copy an object? I mean, how do I create a new
>object which is an exact copy of an existing object, such that its
>property changes do not affect the original object?

Well, that's an interesting question...

The only way I know is issuing CREATEOBJECT (of course this is not the answer you're looking for...)

But it would surely be nice to have a CLONE() function, isn't it?

Renato
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform