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:
00189796
Vues:
9
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.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform