>I have an instance of a client object whose values/properties I'm going to change and use to update a record in a database. But I want to save the original values/properties before I make any changes for reference later as the "original" object.
>
>
>dim origClient as new client
>origClient = client
>
>
>Then I make changes to client object.
>
>But as I'm making changes to the client object they are showing up in the origClient object as well, defeating its "save" purpose.
>
>How do I do this correctly? Thanks.
Try manually setting origClient properties to match client properties.
If it's not broken, fix it until it is.
My Blog