例: StampAll method (NotesViewEntryCollection - LotusScript®)

次のスクリプトは、ユーザーに値の入力を求め、その値を [By Category] ビューの「Cars」のエントリに関連付けられた各文書の「NewField」アイテムに書き込みます。

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("Cars")
newField = Inputbox("NewField value?")
Call vc.StampAll("NewField", newField)