Object manipulation

Posted by: UTKEngineer

Object manipulation - 04/06/05 04:03 PM

Hello All,

Is there a quick and simplistic method to write all the collections and properties from one object to a different, but identical, object? Basically, I'm wanting a program that does this:

Dim Object1 as new UserType
Dim Object2 as new UserType

Write initial conditions to Object2

Calculate Properties of Object1 using initial conditions in Object2.

Write all the properties from Object1 to Object2 and loop back to recalc Object1.

It's the writing that I'm having a problem with.

I can't just say Set Object1 = Object2 because that creates a dependent pointer, and then any changes to either object is reflected in the other. So, can I do this any other way than :

Object1.Property1 = Object2.Property1
Object1.Property2 = Object2.Property2
.
.
.
.

Thanks for the help!