Page 1 of 1

how to get rid of line breaks in my script?

Posted: 2004-06-01 11:39:38
by kolia
ok, I'm working on a new script and I need your help.

the html from where I'm importing contains line breaks (line feeds) that I don't need, and when I try to put the line feed character in a script all I get is an error message...
does anybody know what special character I should use for a line feed comming from the web page? :/

(replacing "^p" or "#13#10" with "" doesn't work)

Posted: 2004-06-01 11:49:25
by antp
you have to replace #13#10, but without quotes since it is not part of a text string :

something := StringReplace(something, #13#10, ' ');

Posted: 2004-06-01 12:15:05
by kolia
I feel silly... :hihi: