Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Ali Koumaiha
  Where is Ali Koumaiha?
 Farmington Hills
 Michigan - Lebanon
 Ali Koumaiha
 To: Pete Sass
  Where is Pete Sass?
 Marathon, Ontario
 Canada
 Pete Sass
 Tags
Subject: RE: i am using vfp/ exe?
Thread ID: 393905 Message ID: 393914 # Views: 55 # Ratings: 0
Version: Visual FoxPro 9 Category: Projects and Design
Date: Thursday, December 26, 2013 3:47:41 AM         
   


> > How can Know whether I am working with a .prg/forms/ under vFP 9 or working on exe complied by vfp? during running an application.
> >
> > Regards,
> >
> > Ulhas Amrite
>
>
> Hi,
>
> I use Version() for most of this.
> As an example I am working on a form with an Exit button that CLEARS EVENTS and QUIT
> but working with this in the VFP IDE I do not want to shut down VFP when I exit the form
> I am testing and working with. So in the Exit button of the form I put in code like:
>
>
* --- If running in production EXE close down the application.
> If VERSION(2) = 0
>     CLEAR EVENTS
>     QUIT
> * ---If running in VFO IDE just release this form.
> ELSE
>     Thisform.Release
> ENDIF

>
> Pete "the IceMan", from the Great White North of Canada.
> www.marathongriffincomputers.com

I use sys(16)

if upper(justfname(sys(16))) = 'MYAPP.EXE'
&& RUNNING THE APP
ELSE
&& NOT RUNNING THE APP
ENDIF

Ez Logic

ENTIRE THREAD

i am using vfp/ exe? Posted by Ulhas Amrite @ 12/25/2013 6:27:30 PM
RE: i am using vfp/ exe? Posted by Stefan Wuebbe @ 12/25/2013 6:30:38 PM
RE: i am using vfp/ exe? Posted by Pete Sass @ 12/25/2013 8:09:42 PM
RE: i am using vfp/ exe? Posted by Ali Koumaiha @ 12/26/2013 3:47:41 AM