O'Reilly logo

Domino Designer 6: A Developer’s Handbook by Gustavo Pecly, Grant McCarthy, Pekka Hartikainen, Andre Guirard, Rune Carlsen, Tommi Tulisalo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

14.4. LotusScript programming tips and considerations

The following section will give you some help in structuring your LotusScript code for event programming within Domino.

14.4.1. General suggestions

Do any or all of the following to improve your scripts:

  • Declare all variables in the global definitions for an object and use the Option Public statement. Next, instantiate the variables in the PostOpen event or in a subroutine that you can call from either the QueryOpen event (for an existing document), or the PostOpen event (for a new document). Your variables will be easier to find and maintain, and you’ll be able to use them in any script for the object.

  • It is recommended that you use Option Explicit or Option Declare to make certain that ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required