KnowledgeBase Archive

An Archive of Early Microsoft KnowledgeBase Articles

View on GitHub

Q63436: "Statement Label Not Allowed Between SELECT CASE" Help Hangs

Article: Q63436
Product(s): See article
Version(s): 4.50
Operating System(s): MS-DOS
Keyword(s): ENDUSER | SR# S900608-162 buglist4.50 | mspl13_basic
Last Modified: 29-JUN-1990

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.

Microsoft has confirmed this to be a problem in the QB.EXE environment
of QuickBASIC version 4.50. We are researching this problem and will
post new information here 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.

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

THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Copyright Microsoft Corporation 1986-2002.