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 ...
Get Domino Designer 6: A Developer’s Handbook now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.