Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Save original object before make changes
Message
De
14/11/2012 16:55:26
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
ADO.NET
Titre:
Save original object before make changes
Versions des environnements
Environment:
VB 9.0
OS:
Windows XP SP2
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01557223
Message ID:
01557223
Vues:
80
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.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform