Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I change object's parent class?
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00658367
Message ID:
00658536
Views:
18
This message has been marked as a message which has helped to the initial question of the thread.
Inge,

>I really messed up my project. I have 2 copy of the same class library in 2 different folders. Accidently, I have added objects into my form, from both classes (which I should not have done. I was suppose to only use 1 of the class library). I think this is why when I compiled my codes, the application does not run at all. It gives me a 'class name is invalid' error. I've checked my objects (in my form class) & have found some objects has the wrong parent class (class name is the same, but it is from a different folder). I've tried looking into the class browser, & there I can check parent classes of my objects, but I don't know if I can just change the parent class to the correct pathname (file name of the classlib is the same). Can anybody help???? Thank you all!!!

Rename the folder where the "wrong" classlib resides or move the classlib
temporarily to another folder.
Open the form with modi form or from within the project-manager. You will get
error-messages with the option "search". locate the correct class and save!
the form. After that Your form should always look for the correct class.
Now You can move the wrong classlib back to the place it belongs. Remove wrong the classlib from the project-manager as it will not go away by itself.

Just in case: make a backup of Your form before You do this.

HTH
Regards from Berlin

Frank

Dietrich Datentechnik (Berlin)
Softwarekombinat Teltow (Teltow)

Frank.Dietrich@dd-tech.de
DFPUG # 327
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform