LOTUSSCRIPT/COM/OLE CLASSES
Examples: Locating a view or folder
1. This example finds a view in the current database.
Sub Initialize
Dim session As New NotesSession
Dim db As NotesDatabase
Dim view As NotesView
Set db = session.CurrentDatabase
Set view = db.GetView _
(Inputbox("Exact name of view?"))
Messagebox "View name: " & view.Name & Chr(10) _
& "Last modified: " & view.LastModified & Chr(10) _
& "Created: " & view.Created & Chr(10) _
& "Universal ID: " & view.UniversalId
End Sub
2. This example finds the default view in the current database.
Sub Initialize
Dim session As New NotesSession
Dim db As NotesDatabase
Set db = session.CurrentDatabase
If Not Isempty(db.Views) Then
REM view is NotesView object
Forall view In db.Views
If view.IsDefaultView Then
Messagebox "Default view is " & view.Name
Exit Forall
End If
End Forall
End If
End Sub
See Also
Locating a view or folder
Glossary
Feedback on Help?
Help on Help
Open Full Help Window
Glossary
Feedback on Help?
Help on Help
Open Full Help Window