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:
The latter (multiple statements on one line) you have been able to do since VS2002 (and probably VB6 and lower...)
Post a Comment