Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Pass parameter to an exe file
Message
De
25/04/2002 07:53:06
 
 
À
25/04/2002 07:23:08
Denis Filer
University of Oxford
Royaume Uni
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00649023
Message ID:
00649066
Vues:
11
This message has been marked as the solution to the initial question of the thread.
Denis,

I think that VFP interprets this as two parameters. You could do something like this in your main.prg:
LPARAMETERS tcName1, tcName2

lcUser = IIF(VARTYPE(tcName1)="C", tcName1, "")
lcUser = lcUser + IIF(VARTYPE(tcName2)="C", " " + tcName2, "")
>Thanks Daniel - this works. Only one small problem. The user names to pass have a space in them. Do you know if there a way to deal with "myprg.exe john smith"?
Daniel
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform