Lotus Notes — рабочий инструмент программиста.

Обсуждения программирования на Lotus Notes/Domino

Creating an Empty Document Collection — Undocumented Code

leave a comment »

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  Published by xFruits

Original source : http://www.openntf.org/projects/codebin/codebin.ns…

Written by lotusnotes

11 января, 2009 в 6:36

Опубликовано в Lotus Notes

Оставьте комментарий