Wriju's BLOG

.NET, Cloud and everything

Visual Basic 10 : Line Continuation Magic

There are some new enhancements in Visual Basic 2010 or Visual Basic 10 where you can really have greater flexibility on how you handle multiple lines for continuous statements,


‘Explicit Continious Line (no need to use & _ )

Dim sContinuation As String =

    “Hey you know I can write multiple lines without & _”





‘Multiple statements in a single line

Dim sMessage As String = “Hello Visual Basic 10” : Console.WriteLine(sMessage)