How Do I...
You can start a non-VisualAge program from your application. To
start an external program, use a Program Starter part.
Adding a Program Starter part
To add a Program Starter part to your application:
- Open a Composition Editor on the visual part from which you want to start
an external program.
- Select
, the External Functions category, and then
, the Program Starter part.
- Click on the free-form surface.
Specifying the program
Now, specify the program you want started:
- Open the Program Starter part's Settings window.
- Change the settings as follows:
- Select Find and, in the dialog that opens, specify the file and
path name for the program.
- In the Parameter string field, specify any parameter you want
passed to the program when it starts.
- On OS/2, go to page 2 of the General tab, select the type of
window in which to open the program.
- Select OK.
Finally, connect an event, such as clicked for a push button, to
the startProgram action of the Program Starter part.
[ Top of Page | Previous Page | Next Page | Table of Contents ]