Problem When Using IMP with a Variable and a Literal (61339)
This article was previously published under Q61339
SYMPTOMS
The code example below using the IMP logical-implication operator
incorrectly prints -1 when compiled with the BC.EXE environment of
Microsoft Basic Professional Development System (PDS) version 7.00 or
7.10. When executed in the QBX.EXE (QuickBasic Extended) environment,
the correct answer of 0 (zero) prints.
The only workaround is to change the -1 to a variable or change i% in
the PRINT statement to a 0 (zero).
STATUS
Microsoft has confirmed this to be a bug in the BC.EXE environment
of Microsoft Basic Professional Development System (PDS) versions 7.00
and 7.10 for MS-DOS and MS OS/2; in the BC.EXE environment of
Microsoft QuickBasic versions 4.00, 4.00b, and 4.50 (buglist4.00,
buglist4.00b, buglist4.50) for MS-DOS; and in the BC.EXE environment
of Microsoft Basic Compiler versions 6.00 and 6.00b for MS-DOS and MS
OS/2. We are researching this problem and will post new information
here in the Microsoft Knowledge Base as it becomes available.
Modification Type: |
Minor |
Last Reviewed: |
1/9/2003 |
Keywords: |
KB61339 |
|