Line Numbers Greater Than 65529 Not Supported

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 :
Version : :1.0
Platform : WINDOWS
Issue type :


Last Reviewed: October 25, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.