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:
00189480
Vues:
17
Marcus,
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.
Mark

>I need to check names and addresses for invalid characters. What do you guys think is the best command/function to use for this. Thanks for your help.
>Marcus.
"It hit an iceberg and it sank. Get over it."
Robert Ballard, dicoverer of the Titanic wreckage.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform