Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Prevent duplicate open forms
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00019652
Message ID:
00019680
Views:
31
>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

John,

I had this same question recently. Use the WEXIST() function. For example:

IF NOT WEXIST("FormName")

DO FORM "FormName"

ENDIF

(Of course, you can use ! in place of NOT: IF !WEXIST("FormName"))

- Ryan Boone
Previous
Reply
Map
View

Click here to load this message in the networking platform