RNUG Lotus User Group (www.vlaad.lv)

Creating empy NotesDocumentCollection with Set MyCol = db.CreateDocumentCollection() UNDOCUMENTED Method.

Vladislav Tatarincev  28 December 2009 10:22:51
I was programming one admin script, which automates some admin things, and came across a problem, that I need an empty Document collection,
to which I can add needed documents, and later process them. I am not doing LotusScript programming everyday, but still may be will be usefull for some people.

We can Add, Merge DocumentCollections, but there is one thing missing creating a empty document collection.
There are workarounds like. http://www-10.lotus.com/ldd/ddwiki.nsf/dx/11262008093158AMWEBK34.htm
Set coll = db.Search("@False", tomorrow, 1)

I have found another one http://www.openntf.org/Projects/codebin/codebin.nsf/0/3297F7585F816C44862575250016C768
posted by "David J Montalvo" 

Dim MyCol As NotesDocumentCollection
Set MyCol = db.CreateDocumentCollection()

CreateDocumentCollection - Undocumented = Unsupported Method. It will be nice if this will be documented, so can be used in scripts (because now no warranty it will stay in 8.5.2).

There is also Undocumented Method db.Archive() in Notes Database.
Archive() method is rather for a long time in NotesDatabase.

It would be nice to know or have a list of all undocumented methods :)