Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Class won't remember path of parent class
Message
From
20/02/1998 07:28:35
Steve Camsell
Windmill Associates
Bath, United Kingdom
 
 
To
19/02/1998 10:40:22
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00079841
Message ID:
00080047
Views:
36
>>I have a class (a custom form) which is based on a direct subclass of the VFP baseclass form. This sublcass of the VFP baseclass lives in a library called baseclas.vcx, which also contains subclasses of all the VFP baseclasses. Some time ago I was forced to move baseclas.vcx on the file server.
>>
>>Now when I open my custom form, I get asked to locate baseclass.vcx and the find file dialog always starts at the library's original location on the file server.
>>
>>Someone please help me. Is there a fix for this?
>
>Fix is in vcx. When you subclass two recs are created. The first contains the original class name and location (superclass) with props changed (if any) and name = "newsubclass", methods empty or new changed/added methods. The other contains "newsubclass" in objname. Change the superclass classloc.
>
>replace classloc with newloc for classloc = oldloc
>
>Cetin

Hi Cetin,

I've tried this and it works perfectly, thanks very much, this has saved me a great deal of stress. Now that I know where to look, I've been looking through some other VCX's and some have an explicit path, some just have a class name e.g. baseclas.vcx, some even have a relative path e.g.
..\classlib\library\baseclas.vcx.

Do you know what is going on here? Doesn't Fox have a uniform standard technique for storing this information? This seems to be very ad-hoc.
Steve Camsell
Development Consultant
Steve.Camsell@Windmill-DBM.Co.Uk
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform