Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Quickly alltrim non-alpha chars from string
Message
 
 
À
01/08/2005 16:30:59
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01037589
Message ID:
01037628
Vues:
32
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform