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
De
28/09/2005 15:20:27
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
01054004
Message ID:
01054158
Vues:
21
>>>>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.

It looks like you are right. I have never used this function, but I was sure it also copied all the event and method code, but it obviously does not.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform