Page 1 of 1

Finding a form name at run time

Posted: Fri Aug 07, 2009 2:56 pm
by ConvertFromOldNGs
by Pam >> Wed, 20 Sep 2006 2:02:56 GMT

I wish I had thought of this ages ago - I regularly need to edit, debug or work on a form but can't remember the name of the form. I have added a menu item to my application mdi frame which copies the name of the active form (non-modal) to the clipboard. The menu item method is simply app.copyStringToClipboard(self.name), or app.copyStringToClipboard(app.activeForm.name). Now press F4 in Class Browser to bring up the Type Browser, press Ctrl-V and the form is selected.