Examples: ColumnCount property (NotesView - LotusScript®)

This script displays the number of columns in the By Category view of the current database.

Dim session As New NotesSession
Dim db As NotesDatabase
Dim view As NotesView
Set db = session.CurrentDatabase
Set view = db.GetView("By Category")
Messagebox "View column count: " & view.ColumnCount