Information générale
Catégorie:
Programmation Orientée Object
Titre:
Copying property values from one object to another
What is the best way of transferring property values from one object to another?
Let's say I have an object A with properties x, y, and z
and I have object B with properties q, r, x and y
I want a method to transfer x and y values from B to A without explicitly "knowing" that the object share those properties in common
I'm currently using AMEMBERS() and vartype() etc , but is there an easier way?
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement