Creating an Empty Document Collection — Undocumented Code
Have you ever wanted to build your own custom document collections? I have, imagine my surprise when I came across this undocumented code within the R8 Mail Template which lets you do just that: CreateDocumentCollection() This handy little timesaver allows you to quickly initialize an empty collection. Here is an example: Dim MyCol As NotesDocumentCollection
Set MyCol = db.CreateDocumentCollection() You are now free to add documents to your empty collection. Note: Before this method the only way I knew of to achieve this was to "getalldocumentsbykey" using a key that does not exist.
Published by |
Original source : http://www.openntf.org/projects/codebin/codebin.ns…
Оставьте комментарий