Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Clone Object
Message
De
02/02/2006 12:47:04
 
 
À
02/02/2006 12:32:04
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 8
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01092951
Message ID:
01092974
Vues:
16
>>Is there simple way to clone object in VFP
>>
>>For example
>>SCATTER NAME loData
>>loData.ID = 1
>>Clone loData to loDataNew
>>loDataNew.ID = 2
>>and changes in loDataNew property do not change loData property value
>>
>>Thanks
>>Denis
>
>No.
>
>
>* COPY
>FOR K=1 TO AMEMBERS(aProp,m.loData)
>  ADDPROP(m.loDataNew,GETPEM(m.loData,aProp[m.k]))
>NEXT
>
By the word... how do I get empty "loDataNew" object.. for now I do SCATTER twice... but maybe exist way to get empty object ? (wothout properties, methods etc)

Thanks
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform