Navigation:  Reference > Commands >

Remark

Print this Topic Previous pageReturn to chapter overviewNext page

 

This command allows the programmer to include a message or remark within the program that will have no effect on the program.

 

REM sacAnything you want.  Everything after the REM is ignored by the compiler and is for your use only.

 

COMMENTS

There are two other characters you can use instead of REM.  A double forward-slash (//) or, if you are going to remark out several lines in a block, put a parenthesis followed by an asterisk ((*) at the beginning of the remark block and the reverse, an asterisk followed by a parenthesis at the end (*)).  Some examples:

 

       REM All of the following remarks are legal

       //  This is a legal remark

       MSG 'TEST'                // This is a legal remark after a command.

 

You cannot put a remark on a command line if the command is continued.  For example:

 

       MSG 'THIS IS A TEST'+ \          // this is not a legal remark

               ' ALSO'                        //  this is a legal remark

 

A remark cannot be put on the continued line since the continuation character (\) must be the last character on the line.  Please note that a continuation character is treated as such, even if it appears on a line after a remark character.

 

If you want to remark out a block do this:

 

       (* This is a block that has been remarked out.

 

       It is often used when writing documentation within the

       program so that you, or the next person, can figure

       out what you were doing.

 

       Don't forget to put the ending remark symbol also! *)

 

NOTE:  Within the source code editor remarks can be displayed in a different color.

 

 


Page url: http://www.cassoftware.com/tas/manual/remark.htm