Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Prevent opening a form if it's already opened.
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Prevent opening a form if it's already opened.
Miscellaneous
Thread ID:
00557131
Message ID:
00557131
Views:
71
I know there has to be a standard way to do this. Within my app I launch forms from menus, from command buttons within other forms, and by double-clicking areas of forms, all using the DO FORM command. I am using the following code in the LOAD event of some of my forms to prevent creating a new instance of the form if it already exists:

IF TYPE("Reportselect") = "O" and !ISNULL(Reportselect)
Reportselect.Show()
RETURN .F.
ENDIF

Of course "Reportselect" is the name of this particular form. How can I use a generic version of this code in the base class for my forms.


Thank you kindly for your help.
Elgin Rogers
Epic Solutions
www.epicsolutions.net
Next
Reply
Map
View

Click here to load this message in the networking platform