Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Parent Class Location
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00212328
Message ID:
00212373
Views:
25
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform