I have a class:
VB Code:
  1. Public Class MyClass
  2.     Public myString as String
  3.     Public myInt as Integer
  4. End Class
and 2 instances of this class:
VB Code:
  1. Dim o1, o2 As New myClass
If i write "o1 = o2" this will set o1 as a reference to o2 object, even if I allocated different memory segments for each one of them, right?
So, the question is how do I copy the information from o2 into o1. Something like:
VB Code:
  1. o1.myString = o2.myString
  2. o1.myInt = o2.myInt
This code works, but if I would have had 100 fields in that class... how would I have done this?
Thank you.