'Line' statements are no longer supported (Visual Basic Compiler Error)


Updated: July 20, 2015

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

Line statements are no longer supported. File I/O functionality is available as Microsoft.VisualBasic.FileSystem.LineInput and graphics functionality is available as System.Drawing.Graphics.DrawLine.

Error ID: BC30830

To correct this error

  1. If performing file access, use Microsoft.VisualBasic.FileSystem.LineInput.

  2. If performing graphics, use System.Drawing.Graphics.Drawline.

File Access with Visual Basic