Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Parent Class Location
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00212328
Message ID:
00212373
Vues:
24
Kevin,

You can use GETPEM() to get the ClassLibrary property of the ParentClass:

? getpem( this.ParentClass, "ClassLibrary" )

>Anyone know how to return the path to a parent class?
>
>In design time, the "ClassLibrary" property returns the
>path to the parent class library. In run time it returns
>the subclass library name and path.
>
>Example:
>
>I have a form class in the library MyForms.Vcx in c:\temp\classes
>and I created a subclass of the form in c:\stuff\subclasses.vcx
>
>In design time, the subclass's ClassLibrary property shows
>"c:\temp\classes"
>
>In runtime it shows "c:\stuff\subclasses.vcx"
>
>I need to extract the design time location while in runtime.
>
>Anyone got any ideas?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform