LOTUSSCRIPT/COM/OLE CLASSES


GetPrevSibling method
Example

Given a document in a view, returns the document immediately preceding the given document at the same level. If you send the method a main document, the preceding main document in the view is returned. If you send a response document, the preceding response document with the same parent is returned.

If the view is categorized, the previous sibling must be in the same category as the original document.

Defined in

NotesView

Syntax

Set notesDocument = notesView.GetPrevSibling( document )

Parameters

document


Return value

notesDocument


Usage

You can use GetPrevSibling to move from one main document to the next, skipping any response documents in between.

If you have filtered the view using FTSearch, GetPrevSibling returns the previous document in the view, regardless of level.

Siblings

Two documents are siblings if:


The first sibling

GetPrevSibling returns Nothing when the notesDocument parameter is:


Language cross-reference

getPrevSibling method in Java View class

Example
See Also