Examples: GetPrevSibling method (NotesOutline - LotusScript®)

This script displays the label of the sibling preceding the last entry in the "products" outline.

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