If you iterate over all views in the database (using, say, the NotesDatabase class' Views property), then once you have a handle to a NotesView object, you can use:
- the Name attribute to compare the name to the ones of interest
- the IsFolder property to check whether you have a view or a folder (Inbox is a folder, for example)
- the EntryCount property to get the number of documents in the folder/view
Alternatively, you can use the NotesDatabase class' GetView method to get a handle to each named view or folder you care about. For example (in VB):
...
set vw = db.GetView ("Inbox")
if (vw.entryCount > 0) then
...
end if