Is there an easy way to count the number of similar items in an array? I know that I could loop through the array and keep a count of the number of items that match my criteria, but is there a built in function to do this?
Thanks,
Joshua Foulk
Is there an easy way to count the number of similar items in an array? I know that I could loop through the array and keep a count of the number of items that match my criteria, but is there a built in function to do this?
Thanks,
Joshua Foulk
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Sunny ChenPosted Jul 3, 2008, 8:31 PM
Please try the FindAll method of List class: