Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem passing parameters using RUN
Message
De
16/12/2004 17:53:28
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Problem passing parameters using RUN
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:
00969875
Vues:
60
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.

Any help would be very much appreciated.

Thank you all.

Regards,

Angie
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform