>>>I like to find a way to know if I am running a APP or EXE.
>>>Is there a SYS() function that I can use to know?
>>
>>FULLPATH(SYS(16,0)) will tell you the full name of the module run at the top level If it's an app as opposed to an .EXE, you should be able to tell.
>
>Thank you ED, This is a good way to know what file is running but I like to know if the application is run from VFP as a APP or EXE or as a stand alone EXE.
>
You can use VERSION(2) - if you're running under the runtime, it returns 0, otherwise it returns 2
>Do you know a way?