Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Moving physical location of classes
Message
From
18/11/1997 11:32:32
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00060733
Message ID:
00060934
Views:
22
>>>>>I have a couple of forms based on some custom classes. When I moved the classes to a new directory I got message boxes saying Foxpro couldn't find the classes, which I then located. I thought that once you showed where the classes were located it would save that information which I found out isn't the case. I was wondereing if anyone knows what I can do to fix this.
>>>>>
>>>>>Mark A. Struck
>>>>
>>>>If you modify the class you are having a problem with and then save it again everything should work fine.
>>>
>>>Here's what you need to do when you relocate a class and then bring up the form.
>>>If you just bring up the form, locate the new class and then just leave the form, VFP thinks that nothing has changed and does not "save" the form definition. You need to force the form to "save" itself. You can do this easily by bringing up the form locating your classes, then pick any object on the form and move it somewhere and then back to it's original position. This will cause VFP to "think" that something changed and force the new definition to be written with your new class locations.
>>>
>>>Steve Despres
>>
>>Steve,
>> I tried your suggestion and ended up with the same results. I don't if it matters that the class library had existed on a different drive before it was moved. I was wondering if there is a program that would expose the internals of the form itself so that maybe I can modify this myself.
>>
>>Mark A. Struck
>
>Mark, every form is just a table. After backing up, open your form as a table:
>USE MyForm.SCX
>
>Then you can look at the Class and Classloc fields and change them as needed.
>
>HTH
>Barbara

Thanks Barbara, I did take a look inside the form and everything looked fine but I was messing around with the .vct files of my classes and noticed that one of my classes was inheriting from another class and that's where the problem was I just had to go into the class and locate the missing class and resave it. I want to thank everyone for their suggestions because this problem was really starting to bug me.

Mark A. Struck
Previous
Reply
Map
View

Click here to load this message in the networking platform