PROGRAMMING OVERVIEW AND USER INTERFACE

Using Script Libraries
Script libraries can contain LotusScript, Java, or JavaScript.

The scope of a script library is the current database. All scripts in a database can avail themselves of the LotusScript, JavaScript, or Java in a library in that database. However, the library is lost to scripts outside the database. For example, if a button in a document uses a script library and you mail the document to or paste it into another database that does not have the same script library, the script fails. If a script attempts to use a library not in the current database, the error message, "Error loading USE or USELSX module" displays.

Note The use of JavaScript in script libraries is new with Release 6.

To create a script library

1. Choose Create - Design - Script Library

2. Choose one of the following:


3. To name the library, choose Edit - Properties.
4. Enter the script in the Script pane. 5. Choose File - Save, then File - Close to save and close the library.

See the following topics for instructions on incorporating a library:


To access an existing script library

1. From the Design pane, expand Shared Code and select Script Libraries.


2. Select the script library you want to view.
See Also