Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem passing parameters using RUN
Message
From
16/12/2004 17:53:28
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Problem passing parameters using RUN
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:
00969875
Views:
61
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
Next
Reply
Map
View

Click here to load this message in the networking platform