Export (0) Print
Expand All
5 out of 7 rated this helpful - Rate this topic

2.1.2 Line Continuation

Visual Studio .NET 2003

A line continuation consists of at least one white-space character that immediately precedes a single underscore character as the last character (other than white space) in a text line. A line continuation allows a logical line to span more than one physical line. Line continuations are treated as if they were white space, even though they are not.

The following program shows some line continuations:

Imports System

Module Test
    Function Func( _
        ByVal Param1 As Integer, _
        ByVal Param2 As Integer )

        If (Param1 < Param2) Or _
            (Param1 > Param2) Then
            Console.WriteLine("Not equal")
        End If
    End Function
End Module
LineContinuation ::= WhiteSpace _ [ WhiteSpace+ ] LineTerminator

See Also

2.1.1 Line Terminators | 2.1.3 White Space | 2.1.4 Comments | 2.1 Characters and Lines | Breaking and Combining Statements in Code (Visual Basic Language Concepts)

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft. All rights reserved.