Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to search for nonprintable char in a file
Message
 
 
To
22/09/2008 14:25:59
Calvin Smith
Wayne Reaves Computer Systems
Macon, Georgia, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01349578
Message ID:
01349584
Views:
19
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform