>Yeah, but you missed occurances of CR sans LF, LF sans CR, multiple LFs, FFs, tab translation...you need something on the order of a more sophisiticated tool than just simple STRTRAN()/CHRTRAN() and a little looping.
BTW, what character is a form feed?
Any character like this I wanted to deal with could be handled by just adding that character to the string in the second parameter of the first line.
BTW, I use this function in production to clean up SQL statements in EView before using them to create a view.
Erik Moore
Clientelligence