You cannot break a line in the middle of a string literal. Either remove the line-continuation character...
Code:
Module Temp
Sub Main()
Dim Scores(2) As Integer
Scores(0) = 45
Scores(1) = 55
Scores(2) = 65
For intLoopIndex As Integer = 0 To UBound(Scores)
Console.WriteLine("Score(" & intLoopIndex & ") = " & Scores(intLoopIndex))
Next intLoopIndex
Console.WriteLine("Press Enter to continue...")
Console.ReadLine()
End Sub
End Module
...or break the line between strings, rather than in the middle of a string:
Code:
Module Temp
Sub Main()
Dim Scores(2) As Integer
Scores(0) = 45
Scores(1) = 55
Scores(2) = 65
For intLoopIndex As Integer = 0 To UBound(Scores)
Console.WriteLine("Score(" & intLoopIndex & _
") = " & Scores(intLoopIndex))
Next intLoopIndex
Console.WriteLine("Press Enter to continue...")
Console.ReadLine()
End Sub
End Module
Bookmarks