Link to home
Start Free TrialLog in
Avatar of icecool
icecool

asked on

Calling program from other languages

hi,

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

tq.
Avatar of Éric Moreau
Éric Moreau
Flag of Canada image

use the shell statement
Avatar of icecool
icecool

ASKER

say if i have this program called a.prg

dim retVal

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

is it correct?
ASKER CERTIFIED SOLUTION
Avatar of Éric Moreau
Éric Moreau
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
you can call compiled program by Shell command
Shell("program_name.exe")

iam not sure that whether it can recieve any value or not
Avatar of icecool

ASKER

no other alternative to call just the program?
.prg is FP source code. Compile it first and then shell the .exe!