Article ID: 132697
Article Last Modified on 11/17/2003
APPLIES TO
- Microsoft Visual FoxPro 3.0 Standard Edition
- Microsoft Visual FoxPro 5.0 Standard Edition
- Microsoft Visual FoxPro 6.0 Professional Edition
This article was previously published under Q132697
SYMPTOMS
A Visual FoxPro .EXE file appears briefly, and then it exits to the
operating system.
CAUSE
The main program is a screen or menu, and no READ EVENTS command has been
issued. In Visual FoxPro, the Command window provides a place for your
application to wait for the next command. Because the Command window is
unavailable in a run-time application, the .EXE file has no wait state to
anticipate keyboard input, so the application returns to the operating
system.
RESOLUTION
A READ EVENTS command or a modal form will provide a wait state for your
application.
STATUS
This behavior is by design.
REFERENCES
Visual FoxPro Professional Features Guide, Chapter 9.
Additional query words: foundation READ
Keywords: kbcode KB132697