Include explanatory remarks in a VBScript program.

      ' comment
      command ' comment

      REM comment
      command : REM comment

If a REM statement is added on the same line as a command, then it must be prefixed with a colon (the end-of-line statement). This is not required when using the apostrophe comment prefix.


Dim MyStr1, MyStr2

MyStr1 = "Hello" : Rem Comment after a statement separated by a colon.
MyStr2 = "Goodbye" ' This is also a comment; no colon is needed.
Rem Comment on a line with no code; no colon is needed.

#Now stand in the place where you work, Now face West
Think about the place where you live, Wonder why you haven't before# ~ REM 'Stand'


Echo - Echo text to screen

© Copyright 1999-2015
Some rights reserved