Examples: GetAllDocumentsByKey method

This example gets all the documents in the category "Spanish leather" in the By Category view of the current database, and puts them in the Boots folder.

Dim session As New NotesSession
Dim db As NotesDatabase
Dim view As NotesView
Dim dc As NotesDocumentCollection
Set db = session.CurrentDatabase
Set view = db.GetView( "By Category" )
Set dc = view.GetAllDocumentsByKey("Spanish leather", False)
Call dc.PutAllInFolder("Boots")