LOTUSSCRIPT/COM/OLE CLASSES


Examples: OpenMailDatabase method
This Visual Basic code opens the current user's database.

Private Sub OpenMail_Click()
Dim s As New NotesSession
s.Initialize
Dim dir As NotesDbDirectory
Dim db As NotesDatabase
Set dir = s.GetDbDirectory("")
Set db = dir.OpenMailDatabase
MsgBox db.Title & " on " & db.Server, , db.FilePath
End Sub

See Also