Try :
_vfp.StartMode
Return Values :
0 - Normal VFP interactive session. Means in VFP environment
1 - Out-of-process (EXE) OLE Server.
2 - Runtime out-of-process OLE Server.
3 - Runtime in-process OLE Server.
Marvin Blase (tA-logistic Software GmbH)
You'll never notice the good things if you haven't seen the bad.