Solved

Calling program from other languages

Posted on 2002-06-26
6
148 Views
Last Modified: 2010-05-02
hi,

i would like to call some foxpro programs from vb program. how to do that?

tq.
0
Comment
Question by:icecool
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 7112626
use the shell statement
0
 

Author Comment

by:icecool
ID: 7112631
say if i have this program called a.prg

dim retVal

retVal = Shell("a.prg",1)

is it correct?
0
 
LVL 70

Accepted Solution

by:
Éric Moreau earned 50 total points
ID: 7112635
you normally call a .exe (a compiled program).
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Expert Comment

by:salman_ilm
ID: 7112654
you can call compiled program by Shell command
Shell("program_name.exe")

iam not sure that whether it can recieve any value or not
0
 

Author Comment

by:icecool
ID: 7112681
no other alternative to call just the program?
0
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 7112695
.prg is FP source code. Compile it first and then shell the .exe!
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question