Error Code 2 Is "Syntax Error" at Both Compile and Run Time (32268)






This article was previously published under Q32268

SUMMARY

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."


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