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++.