Is there a built-in way of making a copy of an existing object? Maybe I'm just braindead and I can't remember. I realize you could loop through all properties and assign them individually, I was just wondering if there was a shortcut.
I'm thinking something like ...
o1=NEWOBJECT(<class>...)
o1.Name="Object 1"
o2=COPYOBJECT(o1)
?o2.Name && prints "Object 1"
o2.Name="Object 2"
?o2.Name && prints "Object 2"
?o1.Name && still prints "Object 1", since o2 refers to a separate object
I'm thinking something like ...
o1=NEWOBJECT(<class>...)
o1.Name="Object 1"
o2=COPYOBJECT(o1)
?o2.Name && prints "Object 1"
o2.Name="Object 2"
?o2.Name && prints "Object 2"
?o1.Name && still prints "Object 1", since o2 refers to a separate object