Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
Syntax error (ERR: 2)
■ More than one condition can cause this error:
• At compile time, the most common cause is an incorrectly
typed Basic keyword or argument.
• At run time, this error can be caused by an incorrectly
formatted DATA statement.
• In form code, this error can occur when the object
specified is not found or explicit reference to the object
is required.
• In an ISAM program, this error can occur if the number of
keyvalues in a SEEKGT, SEEKGE, or SEEKEQ operation is
greater than the number of values that makes up the
current index.
■ Possible solutions:
• Check to verify that you have not misspelled or
incorrectly formatted the Basic keyword or argument.
• Explicitly reference the object in form code.
• Compare the number of keyvalues in the ISAM SEEKxx
operation with the number of values in the current index;
reconcile as necessary.
■ If you need additional help, move the cursor to a keyword
and press F1 to open the Help window.