Finding a form name at run time

Forums for specific tips, techniques and example code
ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Finding a form name at run time

Postby ConvertFromOldNGs » Fri Aug 07, 2009 2:56 pm

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.

Return to “Tips and Techniques”

Who is online

Users browsing this forum: No registered users and 7 guests