End of statement expected

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

See Also

Tasks

How to: Break and Combine Statements in Code (Visual Basic)

Other Resources

Statements in Visual Basic

Change History

Date

History

Reason

October 2011

Added information about line terminators.

Customer feedback.