Anyway to get a count of items in a list
Posted on 2006-04-27
Greetings most learned experts,
Tis I again (of course!). R5.0.12. Anyway my question is can I get a count of the number of items in a list other than just buidling one up as I make the list. For example,
Dim myList List As String
myList("addr") = "123 Main Street"
myList("city") = "Anytown"
myList("telephone") = "1234-5678"
I know that there are 3 items but do I need to build up a count by putting in a counter. The reason I ask is because this information gets passed from a function and the list tag names are the same as the field names they are supposed to populate. That is,
doc.addr = myList("addr")
It's a bit tedious for typing, I've done it but was wondering if there was a better way to do this?
My heartfelt thanks - Notes Rookie