Examples: NotesDocumentCollection class
- This script uses the AllDocuments property in NotesDatabase to
get a NotesDocumentCollection object representing all the documents
in a database.
Dim db As New NotesDatabase( "Ankara", "project.nsf" ) Dim collection As NotesDocumentCollection Set collection = db.AllDocuments
- This script uses the Search method in NotesDatabase to get a NotesDocumentCollection
object representing all of the documents created after March 14, 1995
whose Subject contains "lake".
Dim db As New NotesDatabase( "Ankara", "project.nsf" ) Dim dateTime As New NotesDateTime( DateNumber(1995, 3, 14) ) Dim selection As String Dim collection As NotesDocumentCollection selection = |@Contains( Subject; "lake" )| Set collection = db.Search( selection, dateTime, 0 )