LOTUSSCRIPT/COM/OLE CLASSES
Examples: NotesViewEntryCollection class
1. This script gets a collection of view entries under the category Baseball in the By Category view, and uses the PutAllInFolder method to place them in the Sports folder.
Dim session As New NotesSession
Dim db As NotesDatabase
Dim view As NotesView
Dim vc As NotesViewEntryCollection
Set db = session.CurrentDatabase
Set view = db.GetView("By Category")
view.AutoUpdate = False
Set vc = view.GetAllEntriesByKey("Baseball")
Call vc.PutAllInFolder("Sports")
2. This script uses the GetNthEntry method to retrieve the third entry from the view entry collection.
Dim session As New NotesSession
Dim db As NotesDatabase
Dim view As NotesView
Dim entry As NotesViewEntry
Dim vc As NotesViewEntryCollection
Set db = session.CurrentDatabase
Set view = db.GetView("By Category")
view.AutoUpdate = False
Set vc = view.GetAllEntriesByKey("Books")
Set entry = vc.GetNthEntry(3)
See Also
NotesViewEntryCollection class
Glossary
Feedback on
Help
or
Product Usability
?
Help on Help
All Help Contents
Glossary