How to Use NOWAIT to Have FoxPro Automatically Start Project

Last reviewed: June 27, 1995
Article ID: Q128417
The information in this article applies to:
  • Microsoft FoxPro for Windows, version 2.6a
  • Microsoft FoxPro for Macintosh, version 2.6a

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


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: June 27, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.