Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Filter out garbage characters
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Divers
Thread ID:
01269971
Message ID:
01269973
Vues:
15
This message has been marked as a message which has helped to the initial question of the thread.
Wouldn't CHRTRAN() do exactly that?

>I'm in process of upsizing a fairly large VFP database to SQL 2005. I am working on uploading around a million records from a dbf to a sql table, and the dbf has a bunch of memo fields that have varying degrees of garbage characters in them (from an odd high ascii char to complete jibberish in the field).
>
>I've been searching here and so far have not found a way to efficiently strip garbage characters from a string. I'm not talking about a few characters - I want to remove anything that isn't alphabetic, numeric, a space, hyphen, CR, LF, or an apostrophe. Being able to specify an ASCII range for deletion would be my ideal solution.
>
>Does anyone know how to do this, or do I need to write some real ugly code to handle it?
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform