Microsoft KB Archive/63436

= &quot;Statement Label Not Allowed Between SELECT CASE&quot; Help Hangs =

Article ID: 63436

Article Last Modified on 11/21/2006



This article was previously published under Q63436



SYMPTOMS
In Microsoft QuickBasic, line labels are not allowed between a SELECT CASE statement and the following CASE statement. The QB.EXE environment will detect the error and will display a dialog box informing you of the error. Choosing Help from the dialog box, and then either pressing the ESC key or choosing OK to get back to your program will cause your machine to hang.



STATUS
Microsoft has confirmed this to be a bug in the QB.EXE environment of QuickBasic version 4.50. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

This problem does NOT occur in the QuickBasic Extended environment (QBX.EXE) of Microsoft Basic Professional Development System (PDS) version 7.00.



MORE INFORMATION
The following code example demonstrates the problem. When run inside the QuickBasic environment, the syntax error is detected. If the Help option is selected for the error message, anything else done to exit Help and get back to the program results in the machine hanging.

Code Example
X = 1 SELECT CASE X        'You will get an error message telling you 30  CASE 1              'that it is illegal to have a line label here PRINT &quot;You will hang if you choose help on the error!&quot; END SELECT

Additional query words: QuickBas buglist4.50

Keywords: KB63436

-

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

© Microsoft Corporation. All rights reserved.