I've have a string array to hold certain field values whilereadingrecords. I need to be able to count the number of times a specific string exists in the array.
So if the array holds
"AA"
"BB"
"CC"
"AA"
"DD"
"AA"
I need to know that "AA" occours more than once - that's actually the key. If an Item is in there only once, a certain status must be displayed, if anything more than one, a different status.
I have no problem creating, reading, counting, displaying a specific element, but I can't figure out how to determine the frequency of a specific element.
Thanks in advance,
-SI
So if the array holds
"AA"
"BB"
"CC"
"AA"
"DD"
"AA"
I need to know that "AA" occours more than once - that's actually the key. If an Item is in there only once, a certain status must be displayed, if anything more than one, a different status.
I have no problem creating, reading, counting, displaying a specific element, but I can't figure out how to determine the frequency of a specific element.
Thanks in advance,
-SI