This chapter discusses the role that LotusScript® plays with IBM® products, your operating environment, other
programs, and interactive user applications.
IBM software environments
IBM software provides
the environment in which you create, debug, and run LotusScript modules. IBM software applications that work with LotusScript supply their
own application programming interface (API), which lets you use product
functionality and create and manipulate product objects from within
a LotusScript program.
A IBM software API is effectively
an extension to the LotusScript language
that is available when you are running that product.
Interacting with the user
IBM products lend
themselves to building interactive applications, applications that
incorporate user input and prompt the user to perform particular tasks.
While each individual IBM software
application provides its own user interface for interacting with scripts, LotusScript supplies some
fundamental tools that you can use with any IBM software.
Interacting with other programs
LotusScript provides
a number of functions and statements that you can use to interact
with other programs and the operating system. You can also use Object
Linking and Embedding (OLE) to incorporate functionality and data
from other Windows applications
into your LotusScript applications.
Calling external C language functions
LotusScript allows
you to call external C language functions. You implement external
C functions inside a named library module that generally contains
several C functions. With Windows,
this is a Dynamic Link Library (DLL). All Windows users have access to the libraries
in the Windows application
programming interface (API).
LS2J: Connecting with Java
Using LotusScript and
LS2J, you can access Java classes,
giving you a powerful cross-platform extension to LotusScript. Developers can access Java in LotusScript programs as a set of predefined LotusScript objects. This
set of objects allow LotusScript to
use already created Java classes
that are available in script libraries or found using the classpath.