Microsoft KB Archive/46880

= Suppressing STOP Statement's &quot;Hit Any Key to Return&quot; Message =

Article ID: 46880

Article Last Modified on 11/21/2006

-

APPLIES TO


 * Microsoft QuickBasic 4.0, when used with:
 * Microsoft MS-DOS 6.22 Standard Edition
 * Microsoft QuickBASIC 4.0b, when used with:
 * Microsoft MS-DOS 6.22 Standard Edition
 * Microsoft QuickBasic 4.5 for MS-DOS, when used with:
 * Microsoft MS-DOS 6.22 Standard Edition
 * Microsoft BASIC Compiler 6.0
 * Microsoft BASIC Compiler 6.0b
 * Microsoft BASIC Professional Development System 7.0

-



This article was previously published under Q46880



SUMMARY
The following message displays when a compiled Basic program is terminated with a STOP statement:

&quot;STOP in module xxxxx at address ****:****

Hit any key to return to system&quot;

This information applies to Microsoft QuickBasic Versions 4.00, 4.00b, and 4.50 for MS-DOS and to Microsoft Basic Compiler Versions 6.00, 6.00b for MS-DOS and MS OS/2 and to Microsoft Basic PDS 7.00 for MS-DOS and MS OS/2.

To suppress this message and return directly to the system without having to press a key, use the END statement instead of the STOP statement. You can have multiple END and STOP statements in your program.

Eliminating the need to press a key may be useful when running Basic programs from within MS-DOS batch files or from MS-DOS itself.

Additional query words: QuickBas BasicCom

Keywords: KB46880

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.