KnowledgeBase Archive

An Archive of Early Microsoft KnowledgeBase Articles

View on GitHub

Q57501: QBX May Incorrectly Parse Array Element in User-Defined TYPE

Article: Q57501
Product(s): See article
Version(s): 7.00
Operating System(s): MS-DOS
Keyword(s): ENDUSER | buglist7.00 fixlist7.10 | mspl13_basic
Last Modified: 20-SEP-1990

The QuickBASIC Extended editor (QBX.EXE), which is shipped with
Microsoft BASIC Professional Development System (PDS) version 7.00 for
MS-DOS, incorrectly parses a line of code that uses incorrect syntax
for an array element in a user-defined TYPE. The following is an
example:

   TYPE abc
      a(1 to 10) AS STRING * 8
   END TYPE
   DIM y AS abc
   PRINT y.a$(3)

When you enter the last line into QBX.EXE and press the ENTER key,
the line is interpreted (parsed) incorrectly and is displayed
incorrectly as follows:

   3yGOTO

If the correct line of code "PRINT y.a(3)" is entered, the code is
interpreted correctly.

Microsoft has confirmed this to be problem in the QBX.EXE editor in
Microsoft BASIC PDS version 7.00. This problem was corrected in
QBX.EXE in BASIC PDS 7.10.

This problem relates only to QBX.EXE and does not relate to the BC.EXE
compiler in BASIC 7.00.

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.