Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Class won't remember path of parent class
Message
From
19/02/1998 10:40:22
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
19/02/1998 10:23:07
Steve Camsell
Windmill Associates
Bath, United Kingdom
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00079841
Message ID:
00079848
Views:
38
>I've had this problem for some time, and it's been slowly waring me down until I've reached the point where I've got to fix it.
>
>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. This doesn't seem to happen every time, but each time it does I patiently point it to the new location of the file and when my form opens up I always press Save to try to get it to store the new location. This doesn't seem to work. I have opened the class source file (the vcx) in the hope of locating the old path somewhere but I can't find it. If I get asked to locate baseclass.vcx just one more time something very bad is going to happen. <g>
>
>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
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform