FIX: ELSEIF Syntax Error Marked on IF Line in Interpreter (20592)
This article was previously published under Q20592
SYMPTOMS
In the following program, a syntax error in the ELSEIF portion of a
block IF is misleadingly marked on the IF line instead of the ELSEIF.
Other errors in a block IF usually are marked on the line that
contains the error. The following is a code sample:
x=0 ' 0 means false.
IF (X) THEN ' Error misleadingly marked here when ELSEIF executed.
PRINT "X IS TRUE"
ELSEIF ( THEN ' But the syntax error is actually here.
PRINT "X IS FALSE"
END IF
Microsoft has confirmed this to be a bug in the Microsoft Basic
Interpreter version 3.00 for the Macintosh and in Microsoft
QuickBasic version 1.00 (buglist1.00) for the Macintosh . This
problem is corrected in QuickBasic version 1.00b (fixlist1.00b).
Modification Type: |
Minor |
Last Reviewed: |
1/8/2003 |
Keywords: |
kbbug KB20592 |
|