Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Custom Classes: how to change a method name (no code loo
Message
From
14/05/2000 09:11:54
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00369384
Message ID:
00369386
Views:
18
>Hi,
>
>I have a custom class wich is the parent class for other sub-custom classes. At my parent class, i have some methods, which i can use at my child classes (object oriented).
>My problems is: i need to change the name of some methods because i started a new philosophy of naming methods. It seems simple! Just go to the Class Browser, right? And it works, BUT if one of my child methods have "personal" code (some of them have very different ways from the parent way), they disappear after the renaming operation.
>
>Any idea how to solve this?
>
>Thanks in advance.
>
>Ricardo

Create a new method in the parent class and copy the code. Then, rename the methods in the subclass. Finally, go back to the parent and delete the original method.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Reply
Map
View

Click here to load this message in the networking platform