Examples: Parent property (NotesItem - LotusScript®)
This script gets the parent document of an item. Since doc and parentDoc represent the same document, the script prints the same NoteID twice.
Dim doc As NotesDocument
Dim parentDoc As NotesDocument
Dim item As NotesItem
Dim itemName As String
'...set value of doc...
Set item = doc.GetFirstItem( "Body" )
Set parentDoc = item.Parent
Messagebox( doc.NoteID )
Messagebox( parentDoc.NoteID )