Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to determine the name of the current form?
Message
From
18/01/1999 07:47:50
 
 
To
15/01/1999 17:48:12
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00176761
Message ID:
00177134
Views:
33
Hi Chris.

>>Some code in a class needs to know the name of the form that has instantiated it. Is there a way to determine it? Something like thisform.name? I need the name of the .scx or .sct file. <<

Why not just give the form the same name as the scx and then, if the class is contained by the form, in the class, all you have to do is refer to thisform.name. If the class is form class that is being instantiated by the original form, just add a customer property to the second form class and pass the second form an object reference to the parent form when you instantiate it.

Marcia
Previous
Reply
Map
View

Click here to load this message in the networking platform