例: GetNextEntry method (NotesViewEntryCollection - LotusScript®)

次のスクリプトは、[By Category] ビューの「Student」カテゴリの 2 番目のエントリを取得し、そのエントリを [Honors] フォルダに入れます。

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