Long Strings

From HashVB

Jump to: navigation, search

When you use long strings, use the underscore line-continuation character to easily create multiple lines of code.

eg.

Dim words As String

words = "Hello this is supposed " _

     & "to be a very long string "_
     & "to show you how to use "_
     & "the underscore line-continuation "_
     & "character."
Personal tools