General information
Category:
Coding, syntax & commands
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only