Examples: StampAll method

This example solicits a value from the user and writes it to the Subject item in every document in the database.

Sub Click(Source As Button)
  Dim session As New NotesSession
  Dim db As NotesDatabase
  Dim dc As NotesDocumentCollection
  Dim doc As NotesDocument
  Set db = session.CurrentDatabase
  Set dc = db.FTSearch("Business reports",10)
  newField = Inputbox("NewField value?")
  Call dc.StampAll("Subject", newField)
End Sub