You can also keep the array sorted or else keep a sorted index into the array - a binary search algorithm is a very efficient way of finding something in a sorted list. You don't need to reinvent the wheel: search for VB6 (similar to OO and a much bigger code base out there) along with your search term - you might need to do a little adapting. Here are some sorting algorithms: