End of statement expected

 

Updated: July 20, 2015

For the latest documentation on Visual Studio 2017 RC, see Visual Studio 2017 RC Documentation.

The statement is syntactically complete, but an additional programming element follows the element that completes the statement. A line terminator is required at the end of every statement.

A line terminator divides the characters of a Visual Basic source file into lines. Examples of line terminators are the Unicode carriage return character (&HD), the Unicode linefeed character (&HA), and the Unicode carriage return character followed by the Unicode linefeed character. For more information about line terminators, see the Visual Basic Language Specification.

Error ID: BC30205

To correct this error

  1. Check to see if two different statements have inadvertently been put on the same line.

  2. Insert a line terminator after the element that completes the statement.

How to: Break and Combine Statements in Code
Statements

Show: