Hi, how can i choice from mutiple variables with same name one of them? Thank you. Palo.
Subject: multiple variables in document with same name
Hi Palo,
You cant programatically access (by name) anything other than the first item (I assume this is what you are trying to do).
notesDocument.GetFirstItem(itemName) will get you the first item. To access any further items you’ll need to remove the first one and call GetFirstItem again (and dont save the document at the end or you will have permenantly removed your fields)
Or you could try looping through the notesDocument.Items array and checking the item.Name property. I haven’t tried this, but I assume it will give you all items, including those with the same name. Something like:
Forall i In doc.Items
if (i.Name == “myname”)
...
End Forall
Gail