' (keyword)

Syntax

'text

Description

Causes the compiler to skip all characters between this character and the end of the current line.

Comments

This is very useful for commenting your code to make it more readable.

Example

Sub Main()
  'This whole line is treated as a comment.
  i$ = "Strings"      'This is a valid assignment with a comment.
  This line will cause an error (the apostrophe is missing).
End Sub

See Also

Rem (statement); Comments (topic).

More information

Symbols