Welcome to MSDN Blogs Sign in | Join | Help

Wriju's BLOG

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

 

Console.WriteLine(sContinuation)

 

 

'Multiple statements in a single line

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

 

Namoskar!!!

Posted: Wednesday, June 17, 2009 12:57 AM by wriju

Comments

No Comments

Leave a Comment

(required) 

(required) 

(optional)

(required) 

  
Enter Code Here: Required

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Page view tracker