Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Prevent open form from re-opening
Message
From
09/08/1998 11:27:39
 
 
To
09/08/1998 11:23:37
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00125109
Message ID:
00125110
Views:
18
>I have an application that uses a button on several different forms to open a different form. I can prevent the form from opening if it is already open with the following code in the click method of the button:
>
> if !wexist(<>)
> do form ...
> endif
>
>My question is, if the form is already open, how can I activate it without re-opening it?
Hi Dan.

I think this should work:

if !wexist(<>)
do form <> name foo linked
else
foo.activate()
endif

Marcia
Previous
Reply
Map
View

Click here to load this message in the networking platform