GetDocumentByKey - bug or what

hello

I use “GetDocumentByKey” with the key as a variant array

after searching for a document, all key entries (except the first) are set to zero

(extract of my program)

Dim keywords() As Variant

Dim keylength As Integer

keylength = 3

Redim keywords(1 To keylength)

keywords(1) = classS

keywords(2) = yearI

keywords(3) = monthI

Dim capadoc As NotesDocument

Set capadoc = view.GetDocumentByKey(keywords,True)

this must be a bug, isn’t it

greetings

ingo

Subject: GetDocumentByKey - bug or what

from Designer help------------------------

Each element in the array is compared to a sorted column in the view. The first element in the array is compared to the first sorted column in the view; the second element is compared to the second sorted column; and so on

make sure ur view is correct.