Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org
#

Q7008 How Do I Make Remarks In My Code?

You are here: irt.org | FAQ | VBScript | Q7008 [ previous next ]

Use the Rem keyword or a single apostrophe ( ' ). If the Rem keyword follows code on a line, it must be separated from the code by a colon. However, when you use an apostrophe, the colon is not required. For example:

Dim myArray() : Rem  A colon is needed because it follows code on the same line
For X = 2 to 8  ' No colon is needed for an apostrophe.
Rem All text on this line will not be interpretted... IF Y=X Then

©2018 Martin Webb