How to Use NOWAIT to Have FoxPro Automatically Start Project

ID: Q128417

The information in this article applies to:

SUMMARY

This article shows by example how to have FoxPro automatically start and open a project by calling a program from the CONFIG.FPW or CONFIG.FPM file.

MORE INFORMATION

The CONFIG.FP* file has the following last line:

   COMMAND = DO STARTIT.PRG

The program (STARTIT.PRG) needs the following command to enable the project to open without the program pausing:

   MODIFY PROJECT <project name> NOWAIT

NOTE: If you do not have the NOWAIT clause, you will have to go to the program menu and choose Cancel or close the project to reach the Command window. On the Macintosh, you can just click Screen 0 to cause the project to be closed and the Command window to appear.

Step-by-Step Example

1. Open or modify your CONFIG.FPW or CONFIG.FPM file.

2. Add a line similar to the following line at the bottom of the file:

   COMMAND = DO startit.prg

3. Create a program called STARTIT.PRG.

4. Add a line similar to the following to the STARTIT.PRG file:

   MODIFY PROJECT myproj NOWAIT

Additional reference words: FoxWin FoxMac 2.60a config.fpm config.fpw KBCategory: kbprg kbenv KBSubcategory: FxprgGeneral

Last Reviewed: June 27, 1995