Wednesday, December 15, 2010

VB Comments

The comment argument is the text of any comment we want to include.

2.0 Purpose of comments:

o We can use comments for making the script understandable.

o We can use comments for making one or more statements disable from execution.

2.1 Syntax

Rem comment (After the Rem keyword, a space is required before comment.)

Or

Apostrophe (') symbol before the comment

2.2 Comment/Uncomment a block of statements

  • Select block of statement and use short cut key Ctrl + M (for comment)
  • Select comment block and use short cut key Ctrl + Shift + M (for uncomment)