Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Please help

Status
Not open for further replies.

kmagy

MIS
Oct 21, 2003
38
JO
Hi every body

Pls tell how to be sure not to run more than one instance of a form.

Thanks
 
As example

VFP 8.0

if VARTYPE(_vfp.Forms("your_from_name"))="O"
code...
endif
 
kmagy

Another option would to disable the menu selection in the load of the form (providing you are using a menu).

Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
Option 1

Set the windowtype property to 1 (modal) and they must enter on that form. However, they can leave to another form.


Option 2, depending on how you are doing it.

IF WEXIST('myFormName')
ACTIVATE myFormName
ELSE
DO FORM myFormName
ENDIF


Jim Osieczonek
Delta Business Group, LLC
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top