Custom LotusScript Functions and Routines

This chapter provides a number of predeveloped LotusScript functions and subroutines. It provides a general exposure to the language for novice programmers as well as a quick implementation solution for experienced Domino programmers. The chapter includes a wide variety of enhancements and working source code that can be incorporated into the project databases in this book or any other Notes database. All the source code provided in this section is self-contained and designed to work with no additional code. This means the code can be plugged into virtually any application and implemented with little to no additional work.

All code provided in this section is also provided on the companion Web site in a code library database. Where feasible, working buttons can be clicked to illustrate the various solutions. As a result, the code (and in some cases the buttons themselves) can be copied directly into your database. However, before implementing any of the solutions, let's spend a moment discussing how the information for the section will be presented.

DATABASE.NSFSubstitute with a valid Lotus Notes database file name

EMAILSubstitute with a valid Internet email address or Notes name

FIELDSubstitute with an actual field name

FORMSubstitute with an actual form name

PATHSubstitute with a valid directory path or folder name

SEARCHSTRINGSubstitute with a text string

SERVERSubstitute with a valid Domino server name

VALUESubstitute with a text string or numerical value

VIEWSubstitute with an actual view name

Finally, where feasible, an alternate implementation of many of the following LotusScript modules can also be found in Chapter 14, "Design Enhancements Using Formula Language."

Категории