Microsoft KB Archive/32268

= Error Code 2 Is &quot;Syntax Error&quot; at Both Compile and Run Time =

Article ID: 32268

Article Last Modified on 11/21/2006



This article was previously published under Q32268



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


 * 1) &quot;Microsoft QuickBasic 4.00: Basic Language Reference&quot;
 * 2) &quot;Microsoft Basic Compiler Version 6.00 for MS-DOS and OS/2: Basic Language Reference&quot;

D.1 &quot;Run-Time Error Codes&quot; 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, &quot;Syntax Error,&quot; is taken from Page 502:

&quot;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.&quot;

Additional query words: QuickBas BasicCom

Keywords: KB32268

-

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

© Microsoft Corporation. All rights reserved.