Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Jun Tangunan
  Where is Jun Tangunan?
 Cabanatuan
 Philippines
 Jun Tangunan
 To: llyrad atsituab
  Where is llyrad atsituab?
 Tacloban City
 Philippines
 llyrad atsituab
 Tags
Subject: RE: Form of Form
Thread ID: 331108 Message ID: 331123 # Views: 58 # Ratings: 1
Version: Visual FoxPro 9 SP2 Category: Forms
Date: Tuesday, December 27, 2011 6:44:43 AM         
   


> Hi experts..
>
> I have 2 forms... form 1 and form 2.. if my form 1 is visible and I will try to open it again it will prompt a message 'the form is already open'.. how will I able to do this.. please guide me.. thanks in advance.. merry christmans to all..

You can also use WEXIST():

IF WEXIST("YourForm")
   Messagebox("Sorry, it is already running!")
   * then activate your form so it will appear wherever it is
   ACTIVATE WINDOW YourForm
ELSE
   DO FORM YourForm
ENDIF 


http://sandstorm36.blogspot.com
http://weblogs.foxite.com/sandstorm36/default.aspx

ENTIRE THREAD

Form of Form Posted by llyrad atsituab @ 12/27/2011 3:41:19 AM
RE: Form of Form Posted by Zul Rahim @ 12/27/2011 4:57:07 AM
RE: Form of Form Posted by llyrad atsituab @ 12/27/2011 5:06:04 AM
RE: Form of Form Posted by Jun Tangunan @ 12/27/2011 6:44:43 AM
RE: Form of Form Posted by llyrad atsituab @ 12/27/2011 6:49:58 AM
RE: Form of Form Posted by Jun Tangunan @ 12/27/2011 6:59:39 AM
RE: Form of Form Posted by Tom Saddul @ 12/27/2011 7:21:41 AM