I would like to be able to copy an entire object.
if I have two object, let's say a and b
dim a,b as someobject
a.initialize
a.property=1
b=a
b.property=2
msgbox(a.property,"") would of course return 2 because a and b are the same object
I would like to be able to copy the object
a.initialize
a.property=1
b=CopyObject(a)
b.property=2
so that msbox(a.property,"") would return 1 .
Don't know if its possible. But it would save time. I do need to modify a list or map from time to time and preserve the original.
if I have two object, let's say a and b
dim a,b as someobject
a.initialize
a.property=1
b=a
b.property=2
msgbox(a.property,"") would of course return 2 because a and b are the same object
I would like to be able to copy the object
a.initialize
a.property=1
b=CopyObject(a)
b.property=2
so that msbox(a.property,"") would return 1 .
Don't know if its possible. But it would save time. I do need to modify a list or map from time to time and preserve the original.