Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to tell if running from EXE or development environme
Message
From
26/11/2002 11:33:28
James Blackburn
Qualty Design Systems, Inc.
Kuna, Idaho, United States
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00726755
Message ID:
00727068
Views:
11
David

I use and environemt variable on my computer.
FPDEV=ON

Then in my code I do this:
if getenv("FPDEV") = "ON"
  * do whatever here
endif 
That way you can still have debug code that works even if you are running the runtime.

>This has come up a number of times, and I'm wondering if there is a convenient way to tell whether the application is being run from the VFP development environment of from and executable. The idea is to allow functinality for developers that is not available for customers (using the EXE).
>
>I have a work-around for this - just check for the existence of one of the .prg files that are not distributed with the executable. Still, it seems that maybe there is a better way.
Previous
Reply
Map
View

Click here to load this message in the networking platform