Solved

VBScript question:  Multiline comments?

Posted on 2003-11-03
3
23,428 Views
Last Modified: 2010-10-05
I know how to do a single-line comment in VBScript:

'This is a comment

Usually when I do multiple lines I just begin each line with a single quote:

'This is comment line 1
'This is comment line 2
'...
'Comment N...


Is there a multiline comment format (as found in other languages)?

As in:

/*Comment line 1
Line 2
Line 3
Line 4
Line 5  */

(Everything between the /* and the */ is marked as a comment.



Just wondering if VBScript has the same sort of thing, and I missed it.


Tom
0
Comment
Question by:knowlton
3 Comments
 
LVL 58

Assisted Solution

by:Gary
Gary earned 60 total points
Comment Utility
No you have to comment each line out or use comment tags like this
<!--
sadfds
sdaf
dsf
-->
0
 
LVL 12

Accepted Solution

by:
kingsfan76 earned 65 total points
Comment Utility
not that I know of.  I don;t think there is a direct way.
you can sort of use the html comment to comment out a section:
<%
........  'some codes
%>
<!--
<%
........  'comment out codes
%> -->

in VB.NET the syntax for comment out a section of codes is added.
0
 
LVL 4

Expert Comment

by:Iguanasan
Comment Utility
VB Script does not have multi-line comments.  Either use the single quote ' or the REM statement.

' This is my comment
REM And this is a comment too.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now