Examples: MaxLevel property

This script changes the maximum level of navigation for a view navigator, then displays the result.

Dim session As New NotesSession
Dim db As NotesDatabase
Dim view As NotesView
Dim nav As NotesViewNavigator
Set db = session.CurrentDatabase
Set view = db.GetView("By Category")
view.AutoUpdate = False
Set nav = view.CreateViewNavFromCategory("Products")
If nav.MaxLevel<> = 9 Then
nav.MaxLevel = 9
End If
Messagebox nav.MaxLevel