That's it! I knew it must be possible. Thank you.
Larry
>try Vfp6):
>?Version(2)
>2 Visual FoxPro version type:
>0 - Run time version
>1 - Standard Edition (earlier versions)
>2 - Professional Edition (earlier versions)
>
>
>hope this helps
>
>>How can you tell if a program is running within the development environment or as a standalone EXE? I would like my code to restore the screen when exiting my app when run inside the development environment. I don't want to restore the screen (and show the attendant screen flash) if running as an executable.
>>
>>I tried looking at the SYS() calls but couldn't find anything. I used to be able to do it in FP DOS but I don't know how in VFP 6.
Larry Huisingh
Lockheed Martin Information Technology
Richland WA USA