Friday 10, February 2012
Welcome Guest, Register | Login  
      Home    |    Tutorials    |    Free Ebooks    |    Free Scripts    |    Articles    |    Blog     |    Forum    |    About Us    |    Contact Us

Comments

Comments are used to leave yourself notes or to mark a piece of code so that it doesn't get executed. In VBScript the comment system is extremely simple because there is only one kind of comment.

VBScript only has support for single line comments, so commenting out large blocks of code or leaving yourself long notes can be quite a bit of work. The apostrophe is the special character VBScript uses as its comment initiator.

Example:

Dim myMessage
'myMessage = "this is first comments
myMessage = "This is message"

'this is another comment
document.write(myMessage)

 

This is message

Commenting out segments of code is often quite beneficial when you are trying to debug your VBScript code. Leaving yourself notes in your VBScript is also a good programming practice, as it will remind you of the code's purpose months or even years later when you might be reviewing the code for the first time in a long time.

 
     
   
VBScript Tutorial
 
  Introduction
Introduction
  How to
How to
  Where to
Where to
  Working With Variables
Working With Variables
  Arrays
Arrays
  VBScript Procedures
VBScript Procedures
  Conditional Statements
Conditional Statements
  For Next Loop
For Next Loop
  While Loop
While Loop
  Comments
Comments
  Date
Date
  MsgBox
MsgBox
 
 
 
Web Designing Tutorials
  HTML Tutorial
HTML Tutorial
  DHTML Tutorial
DHTML  Tutorial
  CSS Tutorial
CSS Tutorial
  XHTML Tutorial
XHTML Tutorial
 
Programming Languages Tutorials
  C Language Tutorial
C Language Tutorial
  C++ Tutorial
C++ Tutorial
  Java Language Tutorial
Java Language Tutorial
  Data Structure Theory Tutorial
Data Structure Theory Tutorial
 
Server Side Scripting Tutorials
  PHP Tutorial
PHP Tutorial
  SQL Tutorial
SQL Tutorial
  ASP Tutorial
ASP Tutorial
 
Client Side Scripting Tutorials
  JavaScript Tutorial
JavaScript Tutorial
  VBScript Tutorial
VBScript Tutorial
 
 
 
POPULAR E-BOOKS
 
Download 5 Easy Tips To Website Traffic Ebook 5 Easy Tips To Website Traffic
   
Download How to Pick a Shopping Cart System that Makes You Money  Ebook How to Pick a Shopping Cart System that Makes You Money
   
Download Computer Animation: Algorithms and Techniques  Ebook Computer Animation: Algorithms and Techniques
   
Download Concrete Abstractions - An Introduction to Computer Science Using Scheme  Ebook Concrete Abstractions - An Introduction to Computer Science Using Scheme
   
Download The 7 Great Lies Of Network Marketing Ebook The 7 Great Lies Of Network Marketing
   
 
Studiesinn.com © 2012 All Rights Reserved.
Website Designed & Developed by TechXprtz