Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Quickly alltrim non-alpha chars from string
Message
 
 
To
01/08/2005 16:30:59
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01037589
Message ID:
01037628
Views:
29
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform