"Type Mismatch" Appears When Typing % to Respond to INPUT (30357)
This article was previously published under Q30357
SYMPTOMS
The error message "Type Mismatch" appears when you type a "%" (percent
sign) in response to an INPUT statement receiving input into a numeric
variable.
STATUS
Microsoft has confirmed this to be a bug in QuickBasic Versions
4.00, 4.00b, and 4.50, and in Microsoft Basic Compiler Versions 6.00
and 6.00b for MS-DOS and OS/2 (buglist6.00, buglist6.00b). This
problem was corrected in Microsoft Basic Professional Development
System (PDS) Version 7.00 for MS-DOS and MS OS/2 (fixlist7.00).
The program works correctly using QuickBasic Version 3.00.
The following is a code example:
INPUT "Enter an integer: ",I% ' type just % in response to the input.
PRINT I%
Modification Type: |
Minor |
Last Reviewed: |
1/8/2003 |
Keywords: |
KB30357 |
|