Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem passing parameters using RUN
Message
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Network:
Windows 2000 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
00969875
Message ID:
00969881
Views:
15
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--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform