General information
Category:
Forms & Form designer
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 :-)).
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only