例: DeleteEntry method

次のスクリプトは、ビューエントリコレクション内の文書数を表示し、最初のエントリを削除し、残りの文書の数を表示します。

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("Sale items")
Set entry = vc.GetNthEntry(1)
Messagebox "Count: " & vc.Count
Call vc.DeleteEntry(entry)
Messagebox "Count: " & vc.Count