Jul 28, 2003 #1 jwkolker Programmer Joined Jan 9, 2003 Messages 68 Location 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
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
Jul 30, 2003 #2 ormsk Programmer Joined Sep 30, 2002 Messages 147 Location GB 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 Upvote 0 Downvote
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