Problem with ListTag re ForAll with list held in a Field

My code snippet:

Forall x In doc.VoteVoter

If x = “01 John Smith” Then

Print Listtag(x)

End If

End Forall

I get the error: LISTTAG argument not a list element

If I simplify down to:

Forall x In doc.VoteVoter

Print Listtag(x)

End Forall

I still ge the same error message.

doc.VoteVoter contains:

(0) “01 John Smith”

(1) “02 John Smith”

Subject: Problem with ListTag re ForAll with list held in a Field

doc.VoteVoter is not a list, so you cannot use x as list tag.(it can be a bit confusing: the item type is a list, but the data type is an array)

You can use:

Forall x In doc.VoteVoter

Print x

End Forall

Subject: Problem with ListTag re ForAll with list held in a Field

The values in the field are not a List (as defined by LotusScript), they are just multi-values

You will need to set a NotesItem, do a Forall x in item.Values and then within the forall, do some string manipulation to get the “01” part separate from the “John Smith” part

Subject: Problem with ListTag re ForAll with list held in a Field

why you trying list?