次のスクリプトは、現在のデータベースの [Employees] ビューがカテゴリ別であるかどうかを表示します。
Dim session As New NotesSession
Dim db As NotesDatabase
Dim view As NotesView
Set db = session.CurrentDatabase
Set view = db.GetView("Employees")
If view.IsCategorized Then
Messagebox "The Employees view is categorized."
Else
Messagebox "The Employees view is not categorized."
End If