Information générale
Catégorie:
Codage, syntaxe et commandes
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement