QuickBasic 4.50 Editor Aborts Exit if Key Pressed During Save (38960)



The information in this article applies to:

  • Microsoft QuickBASIC 4.5, when used with:
    • the operating system: MS-DOS

This article was previously published under Q38960

SYMPTOMS

If a key is pressed while the QuickBasic Version 4.50 editor is saving before an Exit, when the file is completely saved, QuickBasic will run the program rather than exit to DOS.

This information applies to Microsoft QuickBasic Version 4.50 for MS-DOS. This problem does not occur in QuickBasic Extended (QBX) shipped with Microsoft Basic Profession Development System (PDS) Version 7.00 (fixlist7.00).

MORE INFORMATION

If any file is in memory and has not been saved since last edit, and you select "Exit" from the File menu, QuickBasic will ask if you wish to save the file before exiting. If you choose Yes, the file will be saved before QuickBasic returns to DOS. However, if you choose to save the file, and then press any key before the save is finished, QuickBasic will finish saving the file, but rather than exit to DOS, it will alter the program according to the key pressed, and attempt to RUN the program. If the key pressed makes a change to the source such that the program will not compile, an appropriate error message displays.

You can work around this problem by allowing QuickBasic to complete the process of saving the file before pressing a key.

Modification Type:MinorLast Reviewed:1/8/2003
Keywords:KB38960