Visual Basic 10 : Line Continuation Magic

Visual Basic 10 : Line Continuation Magic

  • Comments 0

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 & _"

 

Console.WriteLine(sContinuation)

 

 

'Multiple statements in a single line

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

 

Namoskar!!!

Leave a Comment
  • Please add 1 and 3 and type the answer here:
  • Post