Microsoft KB Archive/20592

= FIX: ELSEIF Syntax Error Marked on IF Line in Interpreter =

Article ID: 20592

Article Last Modified on 11/21/2006



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).

Additional query words: MQuickB

Keywords: kbbug kbfix KB20592

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.