AddDocument (NotesDocumentCollection - LotusScript®)

Adds a document to a document collection.

Note: This method is new with Release 5.

Defined in

NotesDocumentCollection

Syntax

C all notesDocumentCollection .AddDocument( document [, checkDups ] )

Parameters

document

The document to be added. If you specify Nothing, this method generates an error.

checkDups

Note: This parameter is for COM only. It is not implemented currently.

Boolean. Optional. Checks for duplicate documents. If True, checks for duplicate documents. Defaults to False.

Usage

For sorted collections, the document will be appended. For unsorted collections, the document will be inserted using an internal algorithm. Sorted collections include all ViewEntryCollections and DocumentCollections created from FTSearch (including DocumentCollections modified by calling the FTSearch method on the collection). All other DocumentCollections are unsorted.

Example