Home All Groups Group Topic Archive Search About

Multiline comment behavior in VS2005 VB.NET

Author
25 Jan 2006 3:35 PM
JohnMSyrasoft
Hi, wondering if I'm missing something before I log a minor bug to the VS2005
feedback page.
In VB6, you could span multiple lines with comments by using a line
continuation character as in

'this is the beginning of my _
    comment which continues down to this line

In VS05, the 2nd line doesn't appear commented unless the apostrophe is
explicitly included.

In other language syntax, there is support for multiline comments.  Did they
change this in VS05 that I'm not aware of?  Thanks.

Author
25 Jan 2006 3:40 PM
Herfried K. Wagner [MVP]
"JohnMSyrasoft" <JohnMSyras***@discussions.microsoft.com> schrieb:
> wondering if I'm missing something before I log a minor bug to the VS2005
> feedback page.
> In VB6, you could span multiple lines with comments by using a line
> continuation character as in
>
> 'this is the beginning of my _
>    comment which continues down to this line
>
> In VS05, the 2nd line doesn't appear commented unless the apostrophe is
> explicitly included.

You are right, comments cannot continued using '_' in VB.NET.  VB does not
support block comments with start/end marks.

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>
Author
26 Jan 2006 2:07 PM
Carlos J. Quintero [VB MVP]
That also happened in VB.NET 2002 if I remember correctly, but I am not sure
if it is a bug or a "by design" decission.

--

Best regards,

Carlos J. Quintero

MZ-Tools: Productivity add-ins for Visual Studio
You can code, design and document much faster:
http://www.mztools.com


Show quoteHide quote
"JohnMSyrasoft" <JohnMSyras***@discussions.microsoft.com> escribió en el
mensaje news:40FDEC0A-BB8A-4677-A59A-67A379D96192@microsoft.com...
> Hi, wondering if I'm missing something before I log a minor bug to the
> VS2005
> feedback page.
> In VB6, you could span multiple lines with comments by using a line
> continuation character as in
>
> 'this is the beginning of my _
>    comment which continues down to this line
>
> In VS05, the 2nd line doesn't appear commented unless the apostrophe is
> explicitly included.
>
> In other language syntax, there is support for multiline comments.  Did
> they
> change this in VS05 that I'm not aware of?  Thanks.
>