Hi BB
I knew there were at least 3 ways of doing this (as usual in VFP). Just discovered in my other code:
If VERSION( 2) = 0
I recall an even older system of mine where $ and ".exe" appear ??? (I know, it's like giving the police a partial car registration number :-)
Terry
>>I'm having a brain seizure. I can't remember the technique for determining whether it's the exe main prog running or it's just being run from the command line.
>>
>>It's ... ?
>>
>>'ppreciate it
>>
>>Terry
>
>? _VFP.StartMode
>
>
>StarMode values from HELP:
>
>0 A development version of Visual FoxPro was started in an interactive session.
>1 Visual FoxPro was started as an application object. For example, the following command creates
> an instance of Visual FoxPro as an application object:
>2 Visual FoxPro was started as an out-of-process .exe automation server.
>3 Visual FoxPro was started as an in-process .dll automation server.
>4 Visual FoxPro was started as a distributable .app or .exe file.
>5 Visual FoxPro was started as an in-process .dll automation server for multithreaded use.
>
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.