Registrations are now open. Join us today!
There is still a lot of work to do on the wiki yet! More information about editing can be found here.
Already have an account?

Microsoft KB Archive/107826

From BetaArchive Wiki
Knowledge Base

PRB: COMMAND+W and CTRL+W Do Not Close All Windows

Article ID: 107826

Article Last Modified on 10/15/2003


  • Microsoft Visual FoxPro 3.0b for Macintosh
  • Microsoft FoxPro 2.5b for Macintosh

This article was previously published under Q107826


Pressing COMMAND+W or CTRL+W does not close every window that has a close box, as the ESC key does.

For example, clicking the close box or choosing Close from the File menu in a screen, menu, or report invokes the following dialog box if any changes were made:

   Do you want to save changes to XXX.SCX?
   Yes        No        Cancel

Pressing COMMAND+W or CTRL+W immediately saves any changes and closes the file, bypassing the "Do you want to save changes?" dialog box. If a new report or screen is being created, a second "Save Environment?" dialog box will appear regardless of the method used to close the file.

However, if COMMAND+W or CTRL+W is pressed in other windows, such as the Debug window, a character will appear in the window and the window will remain open.


This behavior is by design. The intent of the COMMAND+W or CTRL+W key combination is to allow you to bypass the "Do you want to save changes?" dialog box. This key combination cannot be used to close windows that do not invoke this dialog box.

Additional query words: vFoxMac FoxMac control

Keywords: KB107826