Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Changing class method name
Message
De
04/01/2006 11:17:50
 
 
À
04/01/2006 11:00:45
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Divers
Thread ID:
01083153
Message ID:
01083160
Vues:
17
>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"
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform