Help speeding up a search

Hi Kem,

You are sure right… My line 1 starts with an empty line and when I delete that empty line and check for something in the first line it goes into an infinite loop.

Thanks Kem (and Michel for correcting it in the second post).

BTW, if you got that data from a database, you might consider delegating this kind of task to the database. It is exactly the type of thing they are really really good at.