Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Prevent duplicate open forms
Message
From
07/02/1997 20:09:30
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00019652
Message ID:
00019656
Views:
26
>hi,
>how do I test if a form is already open (not
>necessarily active) before I DO FORM ""?
>
>I only want one instance of any form
>Thanks
>John Morga
>Jmorga@spec.net

You can use this syntax:

DO FORM yourformscxname NAME yourformassociatedname

From the menu, you can skip for TYPE('yourformassociatedname')='O' AND NOT NULL('yourformassociatedname').

I am not sure about the NULL syntax. You might want to verify that from the help.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform