Comments

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

  • A subroutine, function, or major block of code
  • Parameters passed between subroutines
  • Variables, constants, or objects
  • Code changes to resolve problems
  • General warnings or things to watch out for

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

Calendar Applications

Collaborative Applications

Reference Library Applications

Workflow Applications

Web Applications

Design Enhancements Using LotusScript

Design Enhancements Using Formula Language

View Enhancements

Sample Agents

Miscellaneous Enhancements and Tips for Domino Databases

Data Management

Security

Application Deployment and Maintenance

Troubleshooting

Appendix A. Online Project Files and Sample Applications

Appendix B. IBM® Lotus® Notes® and Domino®Whats Next?



Lotus Notes Developer's Toolbox(c) Tips for Rapid and Successful Deployment
Lotus Notes Developers Toolbox: Tips for Rapid and Successful Deployment
ISBN: 0132214482
EAN: 2147483647
Year: N/A
Pages: 293
Authors: Mark Elliott

Flylib.com © 2008-2020.
If you may any questions please contact us: flylib@qtcs.net