LOTUSSCRIPT LANGUAGE
Like other identifiers, constants and variables have a scope and a lifetime. Scope refers to the area of an application in which an identifier can be referred to, that is, the area in which the identifier is accessible, or known. Lifetime (or persistence) refers to the period during which the identifier is available to the application. When you define a constant or declare a variable, LotusScript assigns it a default scope and lifetime, which in some cases you can override by including the appropriate keyword in the definition or declaration.
The specific areas of an application in which a constant or variable (or any other identifier) is known, and for what duration, depend on the application model that a product and its programming environment support. The following diagram shows a generic application model and the areas in which you can define constants and declare variables:
See Also