Undocumented Code: CreateDocumentCollection

I was customizing my company’s mail template when I can across this method I have never seen.

CreateDocumentCollection()

This handy little timesaver allows you to quickly initialize an empty collection. Here is an example:

Dim MyCol As NotesDocumentCollection

Dim db As NotesDatabase

Set MyCol = db.CreateDocumentCollection()

You are now free to add documents to your empty collection