Solved

VBScript question:  Multiline comments?

Posted on 2003-11-03
3
26,712 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:Tom Knowlton
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 58

Assisted Solution

by:Gary
Gary earned 60 total points
ID: 9672959
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
ID: 9672990
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
ID: 9673019
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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Select2 jquery help 9 100
Html Table Looping (part 2) 5 35
Can't select treeview node from iframe 2 39
Help with Classic ASP - Parameterizing Query 16 24
I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

726 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