Manage Learn to apply best practices and optimize your operations.

Embedding comments within loops

Try this code for embedding comments within loops.

If you want to embed a comment (REM) within a loop, such as @FOR, you will get an error. I've found a away around that. Simply insert a string without any kind of REM prefix. The string is syntactically correct, and the compiler accepts it. It just has no effect on the result.

For example, the following code would generate an error:

@FOR (cnt:=1; cnt&lt10; 
cnt:=cnt +1;

REM "This is a remark";
myvalue := myvalue + 1;
)

Instead, use the following:

@FOR (cnt:=1; cnt&lt10; 
cnt:=cnt +1;

"This is a remark";
myvalue := myvalue + 1;
)

Do you have comments on this tip? Let us know.

This tip was submitted to the SearchDomino.com tip exchange by member Ralph Bacon. Please let others know how useful it is via the rating scale below. Do you have a useful Notes/Domino tip or code to share? Submit it to our monthly tip contest and you could win a prize and a spot in our Hall of Fame.

Dig Deeper on Lotus Notes Domino Formula Language

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchWindowsServer

Search400

  • iSeries tutorials

    Search400.com's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...

SearchDataCenter

SearchContentManagement

Close