- This Visual Basic code initializes a Domino® session based on a lookup in the current Domino® Directory without supplying
a password. The user is prompted as necessary.
Private Sub InitializeDomino_Click()
Dim s As New NotesSession
Call s.InitializeUsingNotesUserName("Marie LeBlanc")
MsgBox s.CommonUserName, , "Common user name"
End Sub
- This Visual Basic code initializes a Domino® session based on a lookup in the current Domino® Directory and supplies
a password.
Private Sub InitializeDomino_Click()
Dim session As NotesSession
Set session = CreateObject("Lotus.NotesSession")
Call session.InitializeUsingNotesUserName _
("Marie LeBlanc", "secretPassword")
TextUsername = session.UserName
End Sub
- This Visual Basic code initializes a Domino® session based on Anonymous access.
Private Sub InitializeDomino_Click()
Dim s As New NotesSession
Call s.InitializeUsingNotesUserName("")
MsgBox s.CommonUserName, , "Common user name"
End Sub