>Basically, this is impossible to be done safely, because:
>1. There may be private/protected properties that you cannot access.
>2. There may be accessor methods for some/all properties. While this is not a problem directly, the order you'll use to copy the properties determines the execution order for the accessor methods. The code inside these methods may behave differently depending on the value of other properties, etc, etc. I'm sure you got the idea...
>
>But this can be a good item for the wish list. Before that, try to decide yourself on the following problem: when an object is copied, should the owned objects (properties that hold references to other objects) be copied or linked to the new object. This is the most difficult problem, IMHO. If the objects are copied, you may end with infinite loops and other problems. If the objects are only linked to the new object, you may never know who holds references to what objects and, as you know, this is a very ugly problem in VFP.
>
>Vlad
>
>>x=Thisform
>>
>>Holds a object reference for that object but how I can make a seperate copy of object...something like..
>>
>>x=Copyof(Thisform)
I thought its very easier and I'm missing something in vfp, but after reading this, looks like very complicated...
Thnks for the help..
Précédent
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