Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem passing parameters using RUN
Message
 
 
À
16/12/2004 17:53:28
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Network:
Windows 2000 Server
Database:
MS SQL Server
Divers
Thread ID:
00969875
Message ID:
00969881
Vues:
16
This message has been marked as the solution to the initial question of the thread.
>Hello everyone,
>
>I have a form that calls another external VFP exe application that runs as a top level form. The init of the external VFP exe application contains two parameters. If from the IDE in the calling form, I call the external form using DO FORM ... WITH param1, param2 all is well.
>
>If I pass the parameters to the .exe using the RUN command, the receiving EXE complains about the parameters being incorrect. Do I need to separate the parameters with a comma or should they simply be separated with a space?
>
>Any ideas what I might be doing incorrectly?
>
>
>lcCommandStr = 'SOMEOTHER.EXE "' + TRANSFORM(Int1) + '", "' + TRANSFORM(Int2) + '"'
>RUN /4 &lcCommandStr
>
>
>By the way, this worked OK when there was just a single parameter. I am having this problem since the need to pass a second parameter.
>

Angie,

Check How to pass parameters to VFP EXE FAQ #17861
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform