No "Block IF Without END IF" Using IF...THEN REM in QB/QBX.EXE (66691)
This article was previously published under Q66691
SYMPTOMS
In compiled Basics that support block IF statements, the following
statement correctly implies a block IF ... END IF statement, instead
of a single-line IF statement syntax (whereas GW-Basic correctly
treats this as a single-line IF because GW-Basic has no block IF
syntax):
IF expression THEN ' Comment
However, using a THEN REM statement, as follows, poses a problem:
IF expression THEN REM Comment
The problem is that the QBX.EXE (or QB.EXE) environment interprets
THEN REM as indicating a single-line IF statement, whereas BC.EXE
compiler interprets THEN REM as indicating a block IF.
STATUS
Microsoft has confirmed this to be a bug in Microsoft QuickBasic versions
4.00, 4.00b, 4.50 (buglist4.00, buglist4.00b, buglist4.50) for MS-DOS;
Microsoft Basic Compiler versions 6.00 and 6.00b for MS-DOS and MS
OS/2; and Microsoft Basic Professional Development System (PDS)
versions 7.00 and 7.10 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: |
KB66691 |
|