Incorporating a LotusScript script library

About this task

When you use a LotusScript script library, the script in the (Options), (Declarations), Initialize, and Terminate events of the library become available as though they were in the current object's corresponding scripts. User scripts in the library become available as though they were in the current object.

To incorporate a LotusScript script library

About this task

  • Enter a LotusScript Use statement in the (Options) script for the object or for the (Globals) object.

    For example, to make the script library named Market2 available to a form's scripts, enter either of the following statements in the (Declarations) script for the form:

    • Use "Market2"
    • Const m2 = "Market2" Use m2

    The name is case insensitive and should not contain spaces.

You cannot change a declaration in a script library while a script or agent using that declaration is open. You must first close the script or agent using the declaration, make the change in the library script, and then reopen the script using the declaration. If you do make a change while a script is open, you must comment out or delete the script that uses the declaration, close and reopen the script, and then reinsert or remove the comments from the script.

See "Recompiling all LotusScript" for details on how you can find and update scripts that incorporate libraries you have made changes to.