Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to avoid black screen on run command
Message
De
26/02/2017 13:50:55
 
 
À
26/02/2017 13:32:56
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01648531
Message ID:
01648545
Vues:
51
>>
*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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform