This blog is moved to
http://amalhashim.wordpress.com

Wednesday, June 17, 2009

Visual Studio 2010 - Visual Basic Line Continuation

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)

1 comment:

Giles said...

The latter (multiple statements on one line) you have been able to do since VS2002 (and probably VB6 and lower...)