Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to determine the name of the current form?
Message
De
18/01/1999 07:47:50
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00176761
Message ID:
00177134
Vues:
32
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform