Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to avoid black screen on run command
Message
From
26/02/2017 13:50:55
 
 
To
26/02/2017 13:32:56
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01648531
Message ID:
01648545
Views:
52
>>
*SHELLEX.prg
>>
>>LPARAMETER lcLink, lcAction, lcParms
>>*
>>lcAction = IIF(EMPTY(lcAction), "Open", lcAction)
>>lcParms = IIF(EMPTY(lcParms), "", lcParms)
>>*
>>DECLARE INTEGER ShellExecute ;
>>    IN SHELL32.dll ;
>>    INTEGER nWinHandle, ;
>>    STRING cOperation, ;
>>    STRING cFileName, ;
>>    STRING cParameters, ;
>>    STRING cDirectory, ;
>>    INTEGER nShowWindow
>>*
>>DECLARE INTEGER FindWindow ;
>>   IN WIN32API ;
>>   STRING cNull,STRING cWinName
>>*
>>RETURN ShellExecute(FindWindow(0, _SCREEN.caption), ;
>>                    lcAction, lcLink, ;
>>                    lcParms, SYS(2023), 1)
>
>This is same as RUN /N7
>
>both does not wait for process completion?

Honestly, I haven't used Run for many years, so I don't remember. Try it, it will open the program you specify as a normal program, without affecting VFP.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform