Hi all,
I build a NotesDocumentCollection from a loop using:
Set dc = db.CreateDocumentCollection 'Create empty document collection
Call dc.AddDocument(doc)
Then I want to compare the documentcollection with all entries in a view. Hey… a new method of NotesViewEntryCollection called Subtract!
So:
Set vec = vw.AllEntries
Call vec.Subtract(dc)
But unfortunataly, a runtime error is raised: “Invalid object type for method argument”
When I create the empty document collection using db.Search({This=“aFakeSearch”}, Nothing, 0), it works fine.
So this seems an issue in the CreateDocumentCollection method.
Bas