Sorry, I didn't notice that you asked in the B4PPC forum.
Chr(10) = LF LineFeed
Chr(13) = CR CarriageReturn
In Windows and in B4PPC a 'next line' is defined by CRLF which meens the two characters Chr(13) & Chr(10).
It would work with
param=StrReplace(param,Chr(13),"")
param=StrReplace(param,Chr(10),"")
or try to use
param=StrReplace(param,CRLF,"")
CRLF = Chr(13) & Chr(10) in B4PPC
EDIT changed the second Chr(13) with Chr(10)
Best regards.
It would work with
param=StrReplace(param,Chr(13),"")
param=StrReplace(param,Chr(13),"")
or try to use
param=StrReplace(param,CRLF,"")
CRLF = Chr(13) & Chr(10) in B4PPC
There is an ambiguity that sometimes the LF is taken to mean newline without including the carriage return (which is of course a hang-over from teletypes which needed a delay for the carriage movement to complete). So searching for the combination may fail whereas a separate search may work. Examine your file with a hex viewer to see the actual encoding.
BTW I find that sometimes a downloaded text file displays in Notepad with lines run together whereas with Wordpad the new-line characters are effective.