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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Sunny Chen162 reputationPosted Jul 3, 2008, 4:31 PM EDT
Please try the FindAll method of List class: