Promotic
WikipediaLinkedInYoutubeTwitterFacebook

Rem - statement of language VBScript

Description:
Used to include explanatory remarks in a program.
Syntax:

Rem comment

or

' comment

The comment argument is the text of any comment you want to include. After the Rem keyword, a space is required before comment.

Note:
It is possible to use an apostrophe (') instead of the Rem keyword. If the Rem follows other commands on the row, it must be separated by "colon" character. If an apostrophe is used then the colon is not required.

For multiple (multiline) commentary creation it is possible to use command Comment block (or Uncomment block) from the local script editor menu.

See also:
- Dim
- Set
Example:
Dim sStr1, sStr2
sStr1 = "Hello" : Rem Commentary after keyword separated by "colon" character
sStr2 = "Goodbye" ' This is also a comment; no colon is needed
Rem Comment on a line with no code; no colon is needed
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice