Keyword Documents

Hello all,

I have one keyword docuement that contains value like

MUM

BNG

DLH

as values stored in it…

how can i access these values, as i would like use these values as key in GetDocmentByKey…in LotusScript.

Please help … Dev

Subject: Keyword Documents

Mmmm, not very explicit.Assuming you have a multi-value field named KwdField in your doc, you could retrieve all its values in a array with a code similar to this one:

Dim i As Integer

Dim key() As String

i=0

ForAll x in doc.KwdField

i=i+1

ReDim Preserve key (i)

key(i)=x

End ForAll

Subject: RE: Keyword Documents

For this …

==================

Mmmm, not very explicit.

Assuming you have a multi-value field named KwdField in your doc, you could retrieve all its values in a array with a code similar to this one:

Dim i As Integer

Dim key() As String

i=0

ForAll x in doc.KwdField

i=i+1

ReDim Preserve key (i)

key(i)=x

End ForAll

======================

try …

dim tempArray as variant

tempArray = doc.KwdField

do any processing in the tempArray as if it was an array,

then assign back to the field …

doc.KwdField = tempArray


this way, you don’t have to dim an array and keep redimming it. To me, this is the best way to work with multi-values fields in LS - much cleaner.

Subject: RE: Keyword Documents

How can i use this in DB.Search!!!

dev

Subject: Keyword Documents

As it shows like Key=“MUMBNG”

it would like “MUM:BNG” for db.search

thx