Sub Initialize
Dim session As New NotesSession
Dim db As NotesDatabase
Dim view As NotesView
Set db = session.CurrentDatabase
Set view = db.GetView( "By Category" )
Forall c In view.Columns
Messagebox( c.Position & " " & c.Title )
End Forall
End Sub
For example, if the By Category view has five columns, two of which have titles and three of which are untitled, the script displays five dialog boxes with the following values: