Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to search for nonprintable char in a file
Message
 
 
À
22/09/2008 14:25:59
Calvin Smith
Wayne Reaves Computer Systems
Macon, Georgie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Divers
Thread ID:
01349578
Message ID:
01349584
Vues:
20
>I have a file with a memo field that has gone bad. I can open the memo file in a text editor and see all the data. It appears that entries for individual accounts are headed with a SOH NUL NUL string. SOH is chr(1). Can anyone give me any help on how to search for this sequence in a file or in a string. Thanks.

If this is a memo field we may have a problem...

Anyway, try this

select myMemo where len(chrtran(lower(myMemo), '1234567890abcdeetc.','')) >0 && Search for any non alpha numeric characters
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform