KnowledgeBase Archive

An Archive of Early Microsoft KnowledgeBase Articles

View on GitHub

Q32268: Error Code 2 Is "Syntax Error" at Both Compile and Run Time

Article: Q32268
Product(s): See article
Version(s): 4.00 4.00b 4.50
Operating System(s): MS-DOS
Keyword(s): ENDUSER | docerr B_BasicCom | mspl13_basic
Last Modified: 20-DEC-1989

Error code 2, "Syntax Error," needs to be added to the "Run-Time Error
Codes" in Table D.1 on Page 476 of the following manuals:

1. "Microsoft QuickBASIC 4.00: BASIC Language Reference"

2. "Microsoft BASIC Compiler Version 6.00 for MS-DOS and OS/2: BASIC
   Language Reference"

D.1 "Run-Time Error Codes" lists errors in numerical order. The
section following this table lists errors alphabetically and explains
the conditions under which each error may occur.

The following explanation for error code 2, "Syntax Error," is taken
from Page 502:

   "Several conditions can cause this error. The most common cause at
    compile time is a mistyped BASIC keyword or argument. At run-time,
    it is often caused by an improperly formatted DATA statement."

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.