To all,
How can I have a copy of an object that doesn't point to the same reference (obj ptr).
When I obtain a reference to an class which is stored in an array (of interface type e.g. iData)
I get a reference to that object. Now, what I want is to have a copy, exactly the same as the reference but in a different address space. I have tried high and low but I can't seem to do except by ..
CopyOfClass.property1 = original.property1
CopyOfclass.Property2 = original.property2
etc...
This is not what I want.
I would like to see
Dim CopyOfClass as IData
Dim OriginalData as IData
CopyOfClass = Class "cData"
CopyOfClass = OriginalData
But it doesn't work apparently. Both Idata reference point to the same objptr
Any ideas ?
How can I have a copy of an object that doesn't point to the same reference (obj ptr).
When I obtain a reference to an class which is stored in an array (of interface type e.g. iData)
I get a reference to that object. Now, what I want is to have a copy, exactly the same as the reference but in a different address space. I have tried high and low but I can't seem to do except by ..
CopyOfClass.property1 = original.property1
CopyOfclass.Property2 = original.property2
etc...
This is not what I want.
I would like to see
Dim CopyOfClass as IData
Dim OriginalData as IData
CopyOfClass = Class "cData"
CopyOfClass = OriginalData
But it doesn't work apparently. Both Idata reference point to the same objptr
Any ideas ?
Comment