Solved

Calling program from other languages

Posted on 2002-06-26
6
140 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
  • 3
  • 2
6 Comments
 
LVL 69

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 69

Accepted Solution

by:
Éric Moreau earned 50 total points
ID: 7112635
you normally call a .exe (a compiled program).
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 

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 69

Expert Comment

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

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

746 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now