LOTUSSCRIPT/COM/OLE CLASSES
Examples: InitializeUsingNotesUserName method
1. 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
2. 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
3. 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
See Also
InitializeUsingNotesUserName method
Glossary
Feedback on
Help
or
Product Usability
?
Help on Help
All Help Contents
Glossary