LookupKeyWord

Hello, is there anyone who can explain what this code do

Function LookupKeyWord(Cdb As NotesDatabase, KeyWord As String, ReturnValue() As String)

Dim LookupView As NotesView

Dim Ldoc As NotesDocument



Set LookupView = Cdb.GetView("kw")

Set Ldoc = LookupView.GetDocumentByKey(KeyWord)



Forall b In Ldoc.Contents

	Redim Preserve ReturnValue(c%) As String

	ReturnValue(c%) = b

	c% = c% + 1

End Forall

End Function

Subject: LookupKeyWord

Based on the database (Cdb) and keyword (keyword), this function will lookup the document from “kw” view and return all the values of the “content” field in a string array (ReturnValue)

cheers !!

Ashish