Skip to content Skip to navigation


Initialize a Null NotesDocumentCollection

There are times when it is handy to start will a null collection in a NotesDocumentCollection., for example when you want to add documents to a collection programmatically based on something other than selected documents in a view.

Two good methods for doing this are:

Method 1:
Dim session As New NotesSession
Dim db As NotesDatabase
Dim collection As NotesDocumentCollection
Set db = session.CurrentDatabase
Set collection = db.GetProfileDocCollection("The name of a non-existent profile document")

Subscribe to RSS - lotusscript