Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Copying objects
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Copying objects
Miscellaneous
Thread ID:
00003189
Message ID:
00003189
Views:
76
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 Stephens
Peter Stephens
Visual Records, Inc.

Lead Programmer for the general purpose record keeping system Visual Records. Written primarily in VFP 6.0 with a little C++.
Next
Reply
Map
View

Click here to load this message in the networking platform