Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I change object's parent class?
Message
From
17/05/2002 14:52:32
 
 
To
17/05/2002 14:45:46
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00658367
Message ID:
00658370
Views:
17
This message has been marked as the solution to the initial question of the thread.
Inge,

First, back up everything...

Open the form as a table, and look in the classloc field. If there are a lot of controls on this form, you can issue one replace statement instead of manuaully fixing all the entries.
use form1.scx
browse
< UPDATE >
Oh, I see this is a class library. You basically do the same thing, opening the class library as a table...

HTH,

steve


>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!!!
Steve Gibson
Previous
Reply
Map
View

Click here to load this message in the networking platform