GetDocumentByKey using an array of key values

The code below will allow you to get a handle on a document using multiple keys. The view must have the first value in the first column and the second value in the second column, etc...
LotusScript


Dim session As New NotesSession
Dim thisdb As NotesDatabase
Set thisdb = session.CurrentDatabase

Dim view As NotesView
Set view = thisdb.GetView("DLL")

Dim doc As NotesDocument
Dim keys( 1 To 2 ) As String
keys( 1 ) = "Column 1 Value"
keys( 2 ) = "Column 2 Value"
Set doc = view.GetDocumentByKey( keys , True)   

Posted by fbrefere001 on Wednesday March 13, 2002