Sub Initialize Dim s As New NotesSession Dim db As NotesDatabase Dim dc As NotesDocumentCollection Dim doc As NotesDocument, pdoc As NotesDocument Dim docSubj As String, pdocSubj As String Set db = s.CurrentDatabase Set dc = db.AllDocuments Set doc = dc.GetFirstDocument While Not(doc Is Nothing) If doc.IsResponse Then Set pdoc = _ db.GetDocumentByUNID(doc.ParentDocumentUNID) docSubj = doc.Subject(0) pdocSubj = pdoc.Subject(0) Messagebox "Parent: " + pdocSubj,, docSubj End If Set doc = dc.GetNextDocument(doc) Wend End Sub
ich frage mich zwar, warum ich diese Abfrage brauche, denn laut Debugger ist sie immer wahr und somit sinnlos, aber damit kann ich leben...