Question
replace()
ASP classic & VBscript & MSSQL
I currently have this field displaying, replacing line feeds with >BR>
<%= Replace((rs_bar.Fields.Item("News").Value),Chr(13), "<br>") %>
and it work fine
Now I also want to replace chr(32), a space, with . I tried this
<%= Replace(Replace((rs_bar.Fields.Item("News").Value),Chr(13),
"<br>"),Chr(32)," ") %>
It replaces the char(32) but not the chr(13)'s. If and how should this
be done?
--
I currently have this field displaying, replacing line feeds with >BR>
<%= Replace((rs_bar.Fields.Item("News").Value),Chr(13), "<br>") %>
and it work fine
Now I also want to replace chr(32), a space, with . I tried this
<%= Replace(Replace((rs_bar.Fields.Item("News").Value),Chr(13),
"<br>"),Chr(32)," ") %>
It replaces the char(32) but not the chr(13)'s. If and how should this
be done?
--
