GetChild (NotesView - LotusScript®)

Given a document in a view, returns the first response to the document.

Defined in

NotesView

Syntax

Set notesDocument = notesView .GetChild( document )

Parameters

document

A NotesDocument. Any document in the view. If you specify Nothing, this method generates an error.

Return value

notesDocument

A NotesDocument. The first response document to the specified document. Returns Nothing if there are no responses to the document.

Usage

To find additional response documents, use GetNextSibling. The combination of GetChild and GetNextSibling lets you access a document's responses, sorted in the same order as they appear in a view. To get all of a document's immediate responses, unsorted, use the Responses property in NotesDocument.

If you've filtered the view with the FTSearch method, GetChild returns the next document in the view.

Example