freelanceprogrammers.org Forum Index » ASP

COmment Blocks of code


View user's profile Post To page top
System-Administrator@... Posted: Fri Jan 07, 2005 7:49 am


Joined: 03 Jan 2005

Posts: 15
COmment Blocks of code
I know you use a ` to comment one line at a time. I haven`t found how to
comment a block of code. I knew how to do that in C++ but can`t fine on the
web how to do that in VB..................
Reply with quote
Send private message
View user's profile Post To page top
charlesmarkc... Posted: Fri Jan 07, 2005 2:24 pm


Joined: 07 Jan 2006

Posts: 63
COmment Blocks of code
<%--

--%>
will comment out any block of code hTML whatever in an .aspx or .ascx
but unfortunately the VB team granted us no syntical way to do it in
code behind / .vb files.


On Thu, 6 Jan 2005 20:49:59 -0500,
System-Administrator@...
<System-Administrator@...> wrote:
> I know you use a ` to comment one line at a time. I haven`t found how to
> comment a block of code. I knew how to do that in C++ but can`t fine on the
> web how to do that in VB..................
>
>
>
> ________________________________
> Yahoo! Groups Links
>
> To visit your group on the web, go to:
> http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/
>
> To unsubscribe from this group, send an email to:
> AspNetAnyQuestionIsOk-unsubscribe@yahoogroups.com
>
> Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Reply with quote
Send private message
View user's profile Post To page top
RondaKay Posted: Sat Jan 08, 2005 12:17 am


Joined: 08 Jan 2005

Posts: 3
COmment Blocks of code
In VS Studio.... you can highlight all of your code and use the icon
for COMMENT and it will apply ticks to each line. You can uncomment
the same way.

HTH
Ronda


On Fri, 7 Jan 2005 17:24:37 +0900, Charles Carroll <911@...> wrote:
>
> <%--
>
> --%>
> willcomment out any block of code hTML whatever in an .aspxor .ascx
> but unfortunately the VB team granted us no syntical way to do it in
> code behind / .vb files.
>
> On Thu, 6 Jan 2005 20:49:59 -0500,
> System-Administrator@...
> <System-Administrator@...> wrote:
> > I know you use a ` to comment one line at a time. I haven`t found how to
> > comment a block of code. I knew how to do that in C++ but can`t fine on the
> > web how to do that in VB..................
> >
> >
> >
> > ________________________________
> > Yahoo! Groups Links
> >
> > To visit your group on the web, go to:
> > http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/
> >
> > To unsubscribe from this group, send an email to:
> > AspNetAnyQuestionIsOk-unsubscribe@yahoogroups.com
> >
> > Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
>
>
> Yahoo! Groups Links
>
>
>
>
>


--
Ronda Pederson
MVP ASP.Net
Reply with quote
Send private message
View user's profile Post To page top
jhandby Posted: Sat Jan 08, 2005 12:31 am


Joined: 08 Jan 2005

Posts: 1
COmment Blocks of code
I know you use a ` to comment one line at a time. I haven`t found
how to
comment a block of code. I knew how to do that in C++ but can`t fine
on the
web how to do that in VB..................


In VB.NET you can use #If False Then ... #End If to tell the compiler
to ignore a section of code. For example,


Public Sub New()
MyBase.New()

`This call is required by the Windows Form Designer.
InitializeComponent()

`Add any initialization after the InitializeComponent() call

#If False Then
`Anything between the #If and the #End If will not be compiled.
#End If

End Sub



Jason
Reply with quote
Send private message
View user's profile Post To page top
RondaKay Posted: Sat Jan 08, 2005 1:03 am


Joined: 08 Jan 2005

Posts: 3
COmment Blocks of code
You can`t comment a block in VB to my knowledge.

Ronda


On Fri, 7 Jan 2005 18:31:55 -0000, Jason Handby <jasonh@...> wrote:
>
>
> I know you use a ` to comment one line at a time. I haven`t found
> how to
> comment a block of code. I knew how to do that in C++ but can`t fine
> on the
> web how to do that in VB..................
>
>
> In VB.NET you can use #If False Then ... #End If to tell the compiler
> to ignore a section of code. For example,
>
> Public Sub New()
> MyBase.New()
>
> `This call is required by the Windows Form Designer.
> InitializeComponent()
>
> `Add any initialization after the InitializeComponent() call
>
> #If False Then
> `Anything between the #If and the #End If will not be compiled.
> #End If
>
> End Sub
>
>
> Jason
>
>
> Yahoo! Groups Links
>
>
>
>
>


--
Ronda Pederson
MVP ASP.Net
Reply with quote
Send private message
Post new topic Reply to topic
Display posts from previous:   
 

All times are GMT
Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Freelace Website Designer - Customer web design and software building.
China Wholesale - Electronics Products
Character Studio - Tutorials and Help