notesItem and mutli-value elements

I usually don’t work with NotesItem as I would rather work more directly with the document object. With that, I have a question…

Someone told me that I should always use NotesItem when working with mutli value fields. I disagree, for instance …

If an Item has 100 mutli-value elements, how do I change the value in element(67) using NotesItem?

Normally, I would use something like…

dim tempArray as variant

tempArray = doc.myField

tempArray(67) = “blah”

doc.myField = tempArray

Can something like this be done with NotesItem?

I’m just wondering. I don’t see it in help, so I think way use it?

Subject: RE: notesItem and mutli-value elements

No, there’s not a way to reach in and change just one value.

I use NotesItem when I need it, e.g. because I want to adjust the setting of a flag. For setting item values, ReplaceItemValue works fine in most cases.