Hi Hongwei, After I sent my previous message, I reread the code for your binary search example and realized that your routine returns the index of the entry matching the key. Duh. So ignore my first question in the P.P.S. -- Corky Cartwright