Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27192

VS 2010 Comment After New Line Seperator?

$
0
0
Hi Guys,

For ease of sight if nothing else, I am forming a string of data, and ideally want to be able to comment what each part of the string is... for example, what I want to do is this:

Code:

String = String & _
          Field 1 & _ 'Field 1 is X
& "," & Field 2 & _ 'Field 2 is Y preceded by a comma
& "," & Field 3 & _ 'Field 3 is Z preceded by a comma
& "," & Field 4      'Field 4 is The Rest preceded by a comma

However, when I do the above, what should ideally be the commented code, then seems to interfere with the post as the underscore _ needs to be the last character on the line... ?

Any thoughts how I can closest achieve this?

Viewing all articles
Browse latest Browse all 27192

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>