Line continuation character '_' must be preceded by at least one white space and must be the last character on the line
You can use the line-continuation character, which is an underscore (_), to break a long line of code over several lines in your file. The underscore must be immediately preceded by a space and immediately followed by a line terminator (carriage return). For example:
Dim books As XDocument = _
XDocument.Load(My.Application.Info.DirectoryPath & _
"\..\..\Data\books.xml")
Error ID: BC30999
To correct this error
Ensure that the line continuation character (_) is the last character on a line of code.
Ensure that there is a space before the line continuation character, separating it from any other code on the line.
See also
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for