Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can I create a new object from an object on a form?
Message
 
 
To
28/09/2005 15:03:11
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01054004
Message ID:
01054154
Views:
22
>>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform