Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Tell if app run from within VFP?
Message
From
06/04/2011 05:10:42
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01506201
Message ID:
01506230
Views:
53
>>>>I have an app with mymain.prg as the "main" program.
>>>>
>>>>In the command window I can type in DO MYMAIN.PRG
>>>>
>>>>Is there anyway I can tell that I ran the app with the DO command as opposed to running the exe?
>>>
>>>Sys(16,0) ?
>>
>>That did the trick - thanks!
>
>See also
>
>_VFP.StartMode

That's to see if we're running from IDE or from the OS shell. It will report IDE even if the code was run via

do myapp.exe

I actually don't know how does this count in Victor's question - as exe or as a do. It is both.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform