Examples: GetChild method (NotesView - LotusScript®)

This script gets the first response to the first document in the view, if there is one.

Dim db As New NotesDatabase( "Troy", "newnotes.nsf" )
Dim view As NotesView
Dim doc As NotesDocument
Dim response As NotesDocument
Set view = db.GetView( "Main View" )
Set doc = view.GetFirstDocument
Set response = view.GetChild( doc )