Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP deletes class method code (poof!)
Message
De
25/06/1998 23:38:55
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00111708
Message ID:
00111809
Vues:
16
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
Fil
Voir

Click here to load this message in the networking platform