Discussion Locked

Foxpro code to launch an application

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I have an ERP system built using FoxPro. The report customization tool of this ERP allows to add several "Layouts" for a single report and you can print several layouts from the same screen. In many cases the report templates are built on queries and programs within Foxpro. I would like to know if I can add Foxpro code to a report or report program to automatically launch another application and open a file based on a file name stored in a field within the ERP system.

Any help would be greatly appreciated.

3 replies

by charles orgel

RUN | ! Command

Executes external operating commands or programs.

Syntax

RUN [/N] DOSCommand | ProgramName

-or-

! [/N] DOSCommand | ProgramName

Arguments

DOSCommand

Specifies the DOS command to execute.

ProgramName

Specifies the program or application to run. You can specify a Windows-based or an DOS-based program or application.

/N

Specifies NOWAIT. Use it to execute another Window App

This discussion is closed to new replies.