Examples: GetLast method (NotesOutline - LotusScript®)

This script retrieves the last entry in the "products" outline and displays its label.

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