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

removing returns

Status
Not open for further replies.

rseiler

IS-IT--Management
Oct 31, 2002
7
US
I'm trying to write a function that will replace all 'hard carriage returns' with ' '. I am using the Replace function, but not sure what to put in the second parameter.

Replace (Procedure,"x" ," " );

Anyone have any ideas for me?

Rick
 
Thanks MSBrady... I will give this a try.

Rick
 
Try something like:

replace(replace(replace({table.procedure},chr(13)," "),chr(10)," ")," "," ")

The last replace ensures there is only one space replacing the return. You might not need to check for chr(10), which is for a line feed, so you should experiment a little.

-LB
 
lbass,
Thank you very much for the help.... I wasnt sure how to type the carrage return. This work excellent, and was exactly what I was looking for.

Rick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top