Examples: Parent property (NotesLog - LotusScript®)

This Visual Basic code displays the parent user name of a NotesLog object.

Private Sub LogParent_Click()
Dim s As New NotesSession
s.Initialize
Dim log As NotesLog
Set log = s.CreateLog("Log 1")
MsgBox log.Parent.UserName, , "Parent user name"
End Sub