Doh!!! Thanks Peter I should have thought of that.

Cheers

Peter 
Peter Hart Computers

On Behalf Of Peter Cushing
Sent: 09 September 2009 11:46
Subject: Re: Prevent form from reopening

Peter Hart wrote:
> Hi All
>
>  
>
> How can I prevent a form from reopening if it is already open.
>
>
>   
They way I prevent that from happening is by using some code where the 
form is called from.  In most cases for me it is from the menu.
I therefore put in the skip for
wexist('myform')

If you call from another form you can easily check there as well. E.g.

if wexist('myform')
   activate window myform
   * do something with the window
else
   do form myform
endif

HTH

Peter


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/a57fa4cf19531343a2ee11b57db8e3af04c...@server.peterhartcomputers.local
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to