Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Processing Memo Data (FoxPro 2.6) 1

Status
Not open for further replies.

porto99

Technical User
Nov 1, 2004
96
GB
Its about 10 years since I did anything with FoxPro 2.6, but I would like to be able to process some Memo fields in an old database.
Just want to remove non-printing characters.

Can someone show me a snip-it of code to get the charaters in a Memo field and run throught the whole table replacing 'bad' characters with spaces.

Many thanks,

Porto
 
Try this:
Code:
REPLACE ALL table.memofield WITH ;
Chrtran(table.memofield, Chr(1) + Chr(2) + ..., '  ')

Substitute the CHR()'s for whatever characters you want to replace, and use the same number of spaces in the third parameter as you have for CHR()'s in the second parameter.

-Dave Summers-
[cheers]
Even more Fox stuff at:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top