Line Numbers Greater Than 65529 Not Supported

Last reviewed: July 24, 1997
Article ID: Q111869
The information in this article applies to:
  • Microsoft Visual Basic Programming System, Applications Edition, version 1.0

SYMPTOMS

In Microsoft Visual Basic Programming System, Applications Edition, when you type a line number greater than 65529, type code, and then press ENTER to start a new line, you may receive the following error message:

   Expected: line number or label or statement or end of statement

If you do not have the Display Syntax Errors option selected, you receive a syntax error when you run the procedure.

CAUSE

Visual Basic, Applications Edition does not support line numbers greater than 65529.

WORKAROUND

To work around this problem, do one of the following:

  • Use line numbers less than 65529.

    -or-

  • Use line labels to identify a single line of code. A line label can contain numbers, but must start with a letter and end with a colon.

MORE INFORMATION

A line number is used to identify a single line of code. This number can be any combination of digits that is unique within the module. Line numbers can begin in any column as long as they are the first non-blank characters.

Line numbers greater than 65529 are treated as line labels and cannot be returned by the Erl function.

NOTE: Line numbers are used for backward compatibility; it is not recommended that you use them in your procedures.


Additional query words: 1.00 5.00 linenum lables
Keywords : kberrmsg kbprg
Version : 1.00
Platform : WINDOWS


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.

Last reviewed: July 24, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.