LOTUSSCRIPT/COM/OLE CLASSES


Examples: GetFirstEntry method
This script retrieves the first entry in the Student category in the By Category view and puts it in the Honors folder.

Dim session As New NotesSession
Dim db As NotesDatabase
Dim view As NotesView
Dim entry As NotesViewEntry
Dim vc As NotesViewEntryCollection
Dim doc As NotesDocument
Set db = session.CurrentDatabase
Set view = db.getView("By Category")
Set vc = view.GetAllEntriesByKey("Student")
Set entry = vc.GetFirstEntry()
Set doc = entry.Document
Call doc.PutInFolder("Honors")

See Also