>Tore,
>
>>Yes, but it can't be that slow, my experience is that VFP is extremely fast with this kind of jobs.
>
>Thank you for the optimized code. Your solution replaces a substr() and a left() with a single substr(). I can see where that may speed things up if I have to make 1000's or 100's of thousands of fulltrim() calls.
>
>I'm going to continue looking at FoxTools and the Win32 API for other solutions as well.
>
>Thanks again for your help,
>
>Malcolm
Last suggestion by Herman should work. I suggested the same function as he did in his first reply, so it should be modified to
chrtran(lower(lcOriginalString),chrtran(lower(lcOriginalString),'qwertyuiopasdfghjklzxcvbnm',""),"")
If it's not broken, fix it until it is.
My Blog