Hi Charles,
It's probably good to run all the proposed approaches and compare the speed. I guess Ed's algorithm and FoxTools reduce() function should be the winners, but somebody has to check. Let original poster make these comparings and define his choice :)
Thanks.
>Nadya
>
>Did you see a problem with the code I submitted? I believe it would run faster in a SELECT() statement and mline() seem irrelevant in the situation described.
>
>Curious
If it's not broken, fix it until it is.
My Blog