Examples: GetNextSibling method (NotesOutline - LotusScript®)

This script uses the GetNextSibling method to retrieve the second sibling of the first entry in the "products" outline and displays its label.

Dim session As New NotesSession
Dim db As NotesDatabase
Dim outline As NotesOutline
Dim oeA As NotesOutlineEntry
Dim oeB As NotesOutlineEntry
Dim oeC As NotesOutlineEntry
Set db = session.CurrentDatabase
Set outline = db.GetOutline("products")
Set oeA = outline.GetFirst()
Set oeB = outline.GetNextSibling(oeA)
Set oeC = outline.GetNextSibling(oeB)
Messagebox oeC.Label