How to Empty (Flush) the Keyboard Buffer in Basic (58213)
The information in this article applies to:
- Microsoft QuickBASIC 4.0
- Microsoft QuickBASIC 4.0b
- Microsoft QuickBASIC 4.5
- Microsoft BASIC Compiler for MS-DOS and OS/2 6.0
- Microsoft BASIC Compiler for MS-DOS and OS/2 6.0b
- Microsoft Basic Professional Development System for MS-DOS 7.0
This article was previously published under Q58213 SUMMARY
The two programs below show two different methods of emptying the
keyboard input buffer. The first program uses a DOS interrupt to clear
the buffer, while the second program uses the INKEY$ function.
This information applies to Microsoft QuickBasic Versions 4.00, 4.00b,
and 4.50 for MS-DOS; to Microsoft Basic Compiler Versions 6.00 and
6.00b for MS-DOS; and to Microsoft Basic Professional Development
System (PDS) Version 7.00 for MS-DOS.
Modification Type: | Minor | Last Reviewed: | 8/16/2005 |
---|
Keywords: | KB58213 |
---|
|