Examples: GetPrev method (NotesOutline - LotusScript®)

This script returns the label of the entry previous to 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.GetPrev(oeA)
Messagebox oeB.Label