Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing parameters between .EXEs
Message
De
30/12/1998 10:48:32
 
 
À
30/12/1998 10:13:05
Fausto Garcia
Independent Developer
Lima, Pérou
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00171519
Message ID:
00171531
Vues:
26
>Hi to all
>
>How can we do to call an .EXE file from another .EXE file passing it a parameter?
>
>Both .EXEs are generated with Visual FoxPro 5.0
>
>Thanks

First.EXE calls Second.EXE

First.EXE

MAIN.PRG && or wherever call needs to made from
DO Second.EXE WITH 'Data to be Passed' && or can be Second('Data to be passed')


Second.EXE

MAIN.PRG
PARAMETER tcInfo
?tcInfo

Should show on screen 'Data to be Passed'

If you need to call the first, put a PARAMETER statement (or LPARAMETER if LOCAL) as it's first executable line with as many variables as you need to pass it.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform