Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can I create a new object from an object on a form?
Message
 
 
À
28/09/2005 15:03:11
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
01054004
Message ID:
01054154
Vues:
23
>>>Hi Jim,
>>>
>>>check out Rick Strahl's West Wind Client Tools, it has a CopyObject function. http://www.west-wind.com/wwClientTools.asp
>>>
>>He uses similar idea, but the code is more robust. However, this code would not bring methods and events.
>
>What do you mean? AFAIK CopyObject copies ALL the PEMs.

I just read the code, but I see, that only properties are copied. If you have custom code in methods, this would not be automatically copied. In order to copy the object with the custom code you have to create a class with all code defined. At least that's the idea that I would use to implement it, if I face this requirement.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform