Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Class won't remember path of parent class
Message
De
20/02/1998 07:28:35
Steve Camsell
Windmill Associates
Bath, Royaume Uni
 
 
À
19/02/1998 10:40:22
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00079841
Message ID:
00080047
Vues:
40
>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform