"Statement Label Not Allowed Between SELECT CASE" Help Hangs (63436)






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 "You will hang if you choose help on the error!"
   END SELECT
				

Modification Type: Minor Last Reviewed: 1/8/2003
Keywords: KB63436