Views (NotesDatabase - LotusScript®)

Read-only. The views and folders in a database.

Defined in


Data type

Array of NotesView objects


To get: notesViewArray = notesDatabase .Views


Each element of the array is a NotesView object representing a public view or folder in the database, or a private view or folder owned by the effective id running the agent and stored in the database. Private views or folders stored in the desktop are not included.

To set the value of an individual NotesView object, you need to access the array elements individually. For example, to get the first element in the array returned from the NotesDatabase object db, you could do the following:

Dim view as NotesView
Set view = db.Views( 0 )

The database must be open to use this property.