Examples: Level property (NotesOutlineEntry - LotusScript®)

This script displays the level of an outline entry.

Dim session As New NotesSession
Dim db As NotesDatabase
Dim outline As NotesOutline
Dim oe As NotesOutlineEntry
Dim level As Long
Set db = session.CurrentDatabase
Set outline = db.GetOutline("products")
Set oe = outline.GetFirst()
Messagebox "Level: " & oe.Level