I want to use the Replace function in VBScript to replace all line breaks in a string for " ". I come from Java, so using inside a string means a line break.
Replace
" "
Is there an equivalent in VBScript?
For replace you can use vbCrLf:
vbCrLf
Replace(string, vbCrLf, "")
You can also use chr(13)+chr(10).
chr(13)+chr(10)
I seem to remember in some odd cases that chr(10) comes before chr(13).
chr(10)
chr(13)
2.1m questions
2.1m answers
60 comments
57.0k users