Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Copying objects
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
Divers
Thread ID:
00003189
Message ID:
00003194
Vues:
29
>Does anyone know of a way to copy an object in its
>entirety?
>The following method only copys a reference to an
>object:
>x=CREATEOBJECT("form")
>y=x
>
>Y and x both point to the same object! It would
>sure be nice
>if there was a way to do something like the
>following:
>x=CREATEOBJECT("form")
>y=COPYOBJECT(x)
>
>or
>
>x=CREATEOBJECT("form")
>y=CREATEOBJECT("form")
>=COPYOBJECT(y,x)
>
>These features are readily available in languages
>such
>as C++ where there is more of a distinction
>between
>reference and instance.

Peter

I am missing something. Doesn't this copy an instance of an object (basically copying an object)?:

x=CREATEOBJECT("form")
y=CREATEOBJECT("form")

You now have 2 copies of the object 'Form'. What am I missing?

Tom
Tom
--------------------------------
Tom O'Hare
407-299-4268 -- tom@redtile.com -- http://www.redtile.com/
Independent Programmer Using Visual FoxPro, Visual Basic & more...
Operations Manager -- Virtual FoxPro User Group (VFUG)
http://www.vfug.org/ -- tom@vfug.org
President -- Central Florida FoxPro User Group (CFFUG)
http://www.redtile.com/foxpro/
Universal Thread Most Valued Professional (MVP)
http://www.transformation.com/foxpro/
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform