Domino Code Fragment

Code Name*
Accessing Notes Session Properties
Date*
04/28/2024
Source (or email address if you prefer)*
Rlatulippe@romac.com
IP address:.18.222.35.77
Description*
Using the object.property syntax, you can access all the session properties. Let’s look at an example:
Type*
LotusScript
Categories*
(Misc)
Implementation:
Required Client:
Server:
Limitations:
Comments:
Files/Graphics attachments (if applicable): Code:
Example
Dim session As Object
Set session = CreateObject ("Notes.NotesSession")
Print ( session.UserName )
Set session = Nothing
Following is an explanation of the code.
We declare session as an object which will reference the NotesSession class.
Dim session As Object
We get a reference to NotesSession using CreateObject.
Set session = CreateObject ("Notes.NotesSession")
We display the current user name.
Print ( session.UserName )
We release the NotesSession object.
Set session = Nothing