Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can a Form Know What App It Is In?
Message
From
08/04/2005 21:09:38
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Can a Form Know What App It Is In?
Environment versions
Visual FoxPro:
VFP 8
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01002960
Message ID:
01002960
Views:
76
Is it possible for a class (in particular, a form class) to know which app it is in at runtime?

VFP.ServerName will not work because it gives the top level program. In my case, the form is usually in an .app that is called by the top level program.

I know I could add a property to the class and manually specify the name of the app at design time, but this approach would not work if the class appears in more than 1 app.

Thanks
Next
Reply
Map
View

Click here to load this message in the networking platform