Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I need to pass parameters directly from a Foxpro 2.6 application to a

Status
Not open for further replies.

MinhFoxFAQ

IS-IT--Management
Feb 4, 2000
1
US
I need to pass parameters directly from a Foxpro 2.6 application to a VB 6.0 application. Both applications are running on the same PC(I don't want to write and read the parameters to a file.)<br>

Appreciate your help.<br>

Thanks,<br>

Minh.<br>

(201) 313 2843
 
Hi MinhFoxFAQ,<br>
In your case, I think that you can't do it directly, but if you don't want write dan read to a file, you use enviroment variable in DOS.<br>
First you setting the Dos variable = your parameter in Foxpro 2.6, then you get Dos variable in VB 6.0<br>
<br>
<p>TONNI<br><a href=mailto:uatnehc@bdg.centrin.net.id>uatnehc@bdg.centrin.net.id</a><br><a href= Forum</a><br>
 
You can pass any number of parameters to any program from FoxPro -&gt;IF&lt;- the target program was written to accept parameters. The VB6 program must have been written to accept parameters. <br>
<br>
Assuming it was, Try This<br>
lcRunApp = &quot;VB6.exe /para1 /para2&quot;<br>
RUN /2 &lcRunApp<br>
<br>

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top