Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Tell if app run from within VFP?
Message
De
06/04/2011 05:10:42
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01506201
Message ID:
01506230
Vues:
54
>>>>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform