[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Calling program from other languages

Posted on 2002-06-26
6
Medium Priority
?
150 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 150 total points
ID: 7112635
you normally call a .exe (a compiled program).
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 

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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
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…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…
Suggested Courses

649 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