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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Remove Carriage Returns from DBF

Status
Not open for further replies.

jwkolker

Programmer
Jan 9, 2003
68
US
We are trying to remove (replace) hard carriage returns from a field in a dbf. Does anyone have the code handy that will do that?

JK

John Kolker
Programmer
jwkolker@comcast.net
 
Hi

Try
cSearch = chr(10)
cReplace = ""

nPos = 0

do while .not. eof()
if cSearch $ surname
nPos = AT(cSearch,MyField)
REPLACE MyField WITH STUFF(MyField,nPos,2,cReplace)
endif
skip
enddo

HTH
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top