Microsoft KB Archive/47059

= FIX: Can't Nest SELECT CASE After CASE ELSE in Mac QuickBasic =

Article ID: 47059

Article Last Modified on 11/21/2006



This article was previously published under Q47059



SYMPTOMS
The program shown below demonstrates that the error &quot;CASE after CASE ELSE&quot; displays at run time if a second SELECT CASE construct is nested inside another SELECT CASE after the CASE ELSE statement.

Microsoft has confirmed this to be a bug that occurs in the interpreter in Microsoft QuickBasic version 1.00 for Macintosh. The problem does not occur in a compiled application.

This problem is corrected in QuickBasic version 1.00b.



MORE INFORMATION
The following program demonstrates the problem: INPUT a SELECT CASE a  CASE 1 PRINT &quot;one&quot; CASE 2 PRINT &quot;two&quot; CASE ELSE INPUT b     SELECT CASE b         CASE 1 PRINT &quot;sub one&quot; CASE 2 PRINT &quot;sub two&quot; END SELECT END SELECT When the program is run in the interpreter, a &quot;CASE after CASE ELSE&quot; error message displays.

Additional query words: MQuickB

Keywords: kbbug kbfix KB47059

-

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

© Microsoft Corporation. All rights reserved.