Comments are non-executable statements that document or describe LotusScript code. A well-documented application can help other Domino developers understand why code was implemented as well as the results to expect. As a developer, it's good practice to include comments throughout the software code. For example, comments can be used to describe
There are two types of comments in LotusScriptsingle line and multiple line. The apostrophe (') is used to denote a single-line comment. With a single-line comment, all text to the right of the apostrophe is ignored when the code is executed. A single-line comment can reside on a line by itself or can be appended to the end of an executable statement. It's important to understand that single-line comments cannot reside in the middle of an executable statement. The following code includes three single-line comments. Each comment line starts with an apostrophe.
'------------------------------- ' The following displays a message '------------------------------- Messagebox ("Good morning.")
With multiple-line comments, all text between the start and end statements is skipped when the program executes. Multi-line statements are helpful when adding a large block of text or to comment out a block of code. All multi-line comments must start with %REM and end with %END REM. All text information, including code instructions, between these two statements will be ignored.
%REM Comment line 1 Comment line 2 Comment line 3 %END REM
An Introduction to the Lotus Domino Tool Suite
Getting Started with Designer
Navigating the Domino Designer Workspace
Domino Design Elements
An Introduction to Formula Language
An Introduction to LotusScript
Fundamentals of a Notes Application
Reference Library Applications
Design Enhancements Using LotusScript
Design Enhancements Using Formula Language
Miscellaneous Enhancements and Tips for Domino Databases
Application Deployment and Maintenance
Appendix A. Online Project Files and Sample Applications
Appendix B. IBM® Lotus® Notes® and Domino®Whats Next?