Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Clone Object
Message
De
02/02/2006 12:35:23
 
 
À
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:
01092960
Vues:
23
>>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
>
Thanks Fabio,
Yes.. same as my code... I just thought maybe exist special vfp functions for that ;))
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform