Examples: Merge method (NotesViewEntryCollection - LotusScript®)

The following examples use these collections. The NotesViewEntryCollection collection1 contains documents numbered 104565, 135486 and 224593. The NotesViewEntryCollection collection2 contains documents numbered 104565, 222222 and 224593. The NotesViewEntryCollection collection3 contains documents numbered 101010, 111111 and 333333.

 

1. This example returns a collection with documents numbering 104565, 135486, 222222 and 224593.

Call collection1.Merge(collection2)

2. This example returns a collection with documents numbering 101010, 104565, 111111, 222222, 224593, and 333333.

Call collection2.Merge(collection3)

3. This example returns a collection with documents numbering 101010, 104565, 111111, 135486, 224593, and 333333.

Call collection1.Merge(collection3)

4. This example returns a collection with documents numbering 101010, 104565, 111111, 135486, 222222, 224593, and 333333.

Call collection1.Merge(collection2)
Call collection1.Merge(collection3)

5. This example also returns a collection with documents numbering 101010, 104565, 111111, 135486, 222222, 224593, and 333333.

Call collection3.Merge(collection2)
Call collection1.Merge(collection3)