Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to tell if code is in VFP or compiled .EXE
Message
From
05/12/2001 04:07:21
Alexandre Palma
Harms Software, Inc.
Alverca, Portugal
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00588855
Message ID:
00589682
Views:
23
Hi Tommy _VFP.StartMode = 4 if this is the case then you a running an your application outside VFP if you rubn your exe inside vfp _VFP.StartMode will be 0.
Also VERSION(2) will only return 0 if you run your exe outside VFP.

>Is there a quick way to tell if the code that is executing is being run from within VFP. I need this to work with VFP 6 and 7.
>
>I am looking for something to use within:
>
>#If
>
>#EndIf
>
>I feel there is a system variable somewhere but don't seem to locate it.
>
>Thanks...
>Tommy
Alexandre Palma
Senior Application Architect
Previous
Reply
Map
View

Click here to load this message in the networking platform