Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Opinions for best way to check a string for invalid Char
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00189473
Message ID:
00189943
Vues:
9
David,
Thanks so much! This is the coolest thing I've seen in a while! I didn't know you could use CHRTRAN like that! I'll be able to use that in my application!

Mark

>Mark
>
>This would be even faster:
>
>pcName = chrtran( pcName, "#!$", "" )
>
>>If you want to remove the characters (not just locate them) then I recommend STRTRAN:
>>
>>pcName = STRTRAN(pcName, "#", "")
>>pcName = STRTRAN(pcName, "!", "")
>>pcName = STRTRAN(pcName, "$", "")

>>..and so on...
>>
>>This function is nice because it removes every instance very quickly.
"It hit an iceberg and it sank. Get over it."
Robert Ballard, dicoverer of the Titanic wreckage.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform