REM (Formula Language)

The REM reserved word allows you to add explanatory remarks (comments) to a formula. Quotation marks or braces delimit the text of the remark.

Note: Using braces to delimit a remark is new with Release 6.

Syntax

REM " comments " ;

REM { comments } ;

Usage

The backslash ( \ ) serves as an escape character in a remark. To embed quotation marks in a remark delimited by quotation marks, precede each embedded quotation mark with a backslash. To embed a right brace in a remark delimited by braces, precede each embedded right brace with a backslash. To embed a backslash in a remark, type two backslashes.

A compiled formula does not distinguish between quotation marks and braces. When you open a design element containing formulas, braces delimit all constants including those previously specified with quotation marks. A backward slash prefixes a right brace previously specified in a remark delimited by quotation marks.

If a comment doesn't fit on one line, add additional REM statements to complete the comment.

Examples

  1. This formula contains five lines of comments before the code.
    REM "6/15/95";
    REM "The following formula calculates the date";
    REM "for the DueDate field";
    REM "DueDate is the Date field + thirty days";
    REM;
    @Adjust(Date; 0;0;30;0;0;0)
  2. This formula contains five lines of comments before the code.
    REM {1/15/01};
    REM {The following formula calculates the date};
    REM {for the "DueDate" field};
    REM {"DueDate" is the Date field + thirty days};
    REM;
    @Adjust(Date; 0;0;30;0;0;0)

Language cross-reference

%Rem directive of LotusScript® language

Rem statement of LotusScript language

Comment property of LotusScript NotesAgent class

Comment property of LotusScript NotesOutline class

DisplayComment property of LotusScript NotesRichTextDocLink class

Comment property of LotusScript NotesTimer class

Comment property of Java™ Agent class

Comment property of Java Outline class


Additional Documentation | Trademarks |