S
Simon Verona
I have a custom class inherited from a third party control.
Within the class, I need to make a backup copy of the class so that I can
change the properties (font size etc) for printing.
So, I'm using code such as...
Dim backup as dmsreport =me
backup.font=newfont
backup.print
etc etc
I was expecting this not to change any of the parameters of my original
object, however I find that "backup" is created simply as a reference to
"me" and therefore "me" contains all the updates I subsequently make to the
backup.
How do I make a copy of the object so that I can work on the copy without
changing the original?
Hope that this makes sense!
Regards
Simon
Within the class, I need to make a backup copy of the class so that I can
change the properties (font size etc) for printing.
So, I'm using code such as...
Dim backup as dmsreport =me
backup.font=newfont
backup.print
etc etc
I was expecting this not to change any of the parameters of my original
object, however I find that "backup" is created simply as a reference to
"me" and therefore "me" contains all the updates I subsequently make to the
backup.
How do I make a copy of the object so that I can work on the copy without
changing the original?
Hope that this makes sense!
Regards
Simon