Examples: Initialize method
- This Visual Basic code initializes a Domino® session based on the current user ID
without supplying a password. The user is prompted as necessary.
Private Sub InitializeDomino_Click() Dim s As New NotesSession Call s.Initialize MsgBox s.CommonUserName, , "Common user name" End Sub
- This Visual Basic code initializes a Domino® session based on the current ID and
supplies a password.
Private Sub InitializeDomino_Click() Dim session As NotesSession Set session = CreateObject("Lotus.NotesSession") Call session.Initialize("secretPassword") TextUsername = session.UserName End Sub