NotesSession (LotusScript)

Represents the environment of the current script, providing access to environment variables, Address Books, information about the current user, and information about the current Notes® platform and release number.

Creation and access

To access the current session, use New.

Syntax

Dim variableName As New NotesSession

OR

Set notesSession = New NotesSession

To access the current session from a NotesDatabase object, use the Parent property in NotesDatabase.

To access the current session through COM, see "Creating a session object" and "Initializing a session."Examples

To access the current session through OLE, see "Using OLE."

Usage

Since there can only be one session per script, the New method always returns the same object each time you call it.

Do not delete session objects.

Example