Information générale
Catégorie:
Gestionnaire d'écran & Écrans
I can reproduce my problem with the greatest of ease (plus I have a ZIP w/1 PJX, 1 VCX, and 2 SCXs if anyone cares <g>).
Here's what I do:
1) Create a class (myContainer) based on a container. Put some code (a comment will do) in the Click() method.
2) Create a class (baseform) based on a form. Toss myContainer onto it.
3) Create a form (atest-base) from baseform.
4) Create a class (editform) based on baseform. (myContainer will be in it)
5) Create a form (atest-edit) based on editform.
Now,
1) Run atest-base. Close it. Modify myContainer. The Click() code is there!
2) Run atest-edit. Close it. Modify myContainer. The Click() code is gone!
3) Exit modification of myContainer. Modify again. You will now get the error "Cannot modify class, it is in use".
I'll try your suggestion as a work-around. I can also get around things by restarting VFP every time I change the class (but what a pain!).
Bob
P.S. Like I said, if anyone wants to see the problem, they can gladly have my ZIP (but you have to promise to solve the problem :-)).
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement