Examples: Intersect method (NotesViewEntryCollection - LotusScript®)

The following examples use these collections. The NotesViewEntryCollection collection1 contains documents numbered 104565, 135486, 224593, 448790, 542841, 667201, 734922, and 803469. The NotesViewEntryCollection collection2 contains documents numbered 104565, 222222, 224593, 444444, 542841, 666666, 734922, and 888888. The NotesViewEntryCollection collection3 contains documents numbered 104565, 111111, 222222, 448790, 555555, 666666, 734922, and 888888.

 

1. This example returns a collection with documents numbering 104565, 224593, 542841, and 734922.

Call collection1.Intersect(collection2)

2. This example returns a collection with documents numbering 104565, 448790, and 734922.

Call collection1.Intersect(collection3)

3. This example returns a collection with documents numbering 104565, 222222, 666666, 734922, and 888888.

Call collection2.Intersect(collection3)

4. This example returns a collection with documents numbering 104565 and 734922.

Call collection1.Intersect(collection2)
Call collection1.Intersect(collection3)

5. This example also returns a collection with documents numbering 104565 and 734922.

Call collection3.Intersect(collection2)
Call collection1.Intersect(collection3)

6. This example also returns a collection with documents numbering 104565 and 734022 AND preserves view order if/when the entries are processed later.

Call collection3.Intersect(collection2, true)
Call collection1.Intersect(collection3, true)