Login | |
|
 |
Re: Remove Carriage Return/Line Feed from a Text File - 2/16/2005 5:46:13 AM
|
|
 |
|
| |
CaffeineAddiction
Posts: 144
Score: 0
Joined: 2/9/2005
From:
Status: offline
|
In stead of sending a character as a argument ... try using a number as an argument ... syntax for replace (had to look it up) is: Replace(expression, find, replacewith[, start[, count[, compare]]]) Your current find replace line: strNewText = Replace(strText, strOldText, strNewText) What you might want to think about changing it to: strNewText = Replace(strText, chr(013), "") ' chr(013) = carriage return strNewText = Replace(strText, chr(010), "") ' chr(010) = NL ... or New Line strNewText = Replace(strText, chr(N), "") ' chr(010) = NL ... or New Line ' where n is = to one of the Dec char values here (http://www.lookuptables.com/) ...
|
|
| |
|
|
|
|
|