Comments

Comments let you annotate your code without affecting its execution. CrossBasic supports two styles of single‑line comments:

  • Double‑slash (//): Anything following // on that line is ignored by the compiler.
  • Single‑quote ('): Anything following ' on that line is ignored.
' This is a VB‑style comment
Dim x As Integer = 10  // This is a Cstyle comment

// You can mix them:
Print("Hello")  ' Prints greeting

Note:

  • There is no built‑in syntax for multi‑line or block comments.
  • To comment multiple lines, simply prefix each with // or '.