>>Is there some easy way to copy an object? Like ACOPY() but for objects? Simple assignment creates a reference to the object rather than an new instantiantion.
>>
>>Thanks in advance
>>
>>James Beerbower
>
>Maybe
>oObjectCopy = CREATEOBJECT(oOriginalObject.Class)
Unfortunately that create a new object with the default properties of the class not the properties of the original object:
oa = createobject('x')
oa.x = 'r'
ob = createobject(oa.class)
?ob.x
?oa.x
define class x as custom
x = 'd'
enddefine
But thanks anyways!
James Beerbower
Qsys
Deutschland
James Beerbower
James Beerbower Enterprises
Frankfurt, Deutschland