'Option' statements must precede any declarations or 'Imports' statements

Option statements should be the first non-comment statements in your source code.

Error ID: BC30627

To correct this error

  • Move the Option statements to the top of the source code, immediately before Imports and Namespace statements.

See Also

Reference

Option (Visual Basic)

Option Compare Statement

Option Explicit Statement (Visual Basic)

Option Infer Statement

Option Strict Statement