LOTUSSCRIPT/COM/OLE CLASSES


Examples: UpdateAll method
This is an example of an agent that runs on "All new & modified documents." The UnprocessedDocuments method collects all new and modified documents since the last run. The UpdateAll method marks those documents so that they will be recognized as old documents on subsequent runs.

Sub Click(Source As Button)
 Dim session As New NotesSession
 Dim db As NotesDatabase
 Dim collection As NotesDocumentCollection
 Dim doc As NotesDocument
 Set db = session.CurrentDatabase
 Set collection = db.UnprocessedDocuments
 Call collection.UpdateAll
End Sub

See Also