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