Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing class method name
Message
From
04/01/2006 11:17:50
 
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01083153
Message ID:
01083160
Views:
16
>Hi,
>
>I have a form class that has a method "aftersave". I have a form based on this class that has code in this method. I went back to the class to change the name of the method to "save_after" and when I went back to the form, the code is gone. I have to revert back to the old name in the class and then I see the code back at the form.
>
>I think I had done this before and it wouldn't lose the code, but I don't remember exactly. What can I do to make it retain the code in the form?
>
>Thanks.

add a "aftersave" empty method to the form class.
open the form
copy the code into the "save_after"
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform