Caché MultiValue Basic Reference
REM
[Back] [Next]
   
Server:docs2
Instance:LATEST
User:UnknownUser
 
-
Go to:
Search:    

Includes a comment in a program.
Synopsis
REM comment
Arguments
None.
The comment argument is the text of any comment you want to include. After the REM keyword, a space is required before comment.
Description
You can use the REM statement to include comments in the source code of your program. A comment can be on a separate line, or on the same line as an executable statement. If you include a comment on the same line as an executable statement, the statement must be ended with a semicolon (;) before the comment indicator.
The REM statement is one of several single-line comment indicators. You can also use the exclamation mark (!), asterisk (*), or dollar sign asterisk ($*) to indicate a comment. Regardless of which indicator you use, all comments are single-line comments; you must specify a comment indicator for every line of a comment.
Note:
Caché MVBasic contains both a REM (remarks) statement and a REM (remainder) function. These are completely unrelated and should not be confused.
Examples
The following example illustrates the use of the REM statement:
MyStr1="Hello"; REM Comment after a statement.
MyStr2 = "Goodbye"
  REM This is also a comment.
PRINT MyStr1,Mystr2; REM comment (note semicolon)
  ! This too is a comment.
  * This too is a comment.
  $* This too is a comment.
See Also