Page 14 of 62
SBasic User's Manual SBasic Version 2.7 Page 14
Printed: December 5, 1999
Remarks
SBasic provides two comment delimiters, for imbedding remarks in your
source files. The traditional REM statement can be used to start a
comment at nearly any point in an SBasic program. You can also use
the newer ' (single-quote). All text following a remark delimiter is
ignored by the SBasic compiler.
You can place a comment at the beginning of any line. You can also
place a comment at the end of any complete SBasic statement. You
cannot place a comment within an SBasic statement.
Example:
rem This is a legal comment
' So is this
a = c + 5 ' this is a legal comment, too
a = c + ' this is illegal!
Note that you can always insert a blank line anywhere in your source;
SBasic always ignores blank lines.