Examples: StampAll method (NotesViewEntryCollection - LotusScript®)

This script requests a value from the user and writes it to the NewField item in every document associated with the entries in the Cars view collection in the By Category view.

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)