Forums

This topic is locked

hard line chr(13)

Posted 05 Jul 2003 00:14:38
1
has voted
05 Jul 2003 00:14:38 mr binarian posted:
i am wondering...lets say i am calling a database entry as follows.

<%=ReplaceOut(vProdDesc)%>

I have set Dim vProdDesc earlier in the code

how do i write this so hard lines to show up... the Chr(13). right now it shows up with no wraps.

i tried
<%=ReplaceOut(vProdDesc).Value, Chr(13), "<br>"%>
but it just makes it all go blank.


?


Edited by - binarian on 05 Jul 2003 00:23:21

Replies

Replied 07 Jul 2003 14:56:58
07 Jul 2003 14:56:58 Stefan P replied:
I presume you are trying to preserve line breaks?

If so, you're code will look something like:

<%=Replace(vProdDesc).Value, VbCrLf, "<br>"%>


Regards

Stefan

DMX | ASP | VBScript | ACCESS | IIS5
Replied 08 Jul 2003 14:43:54
08 Jul 2003 14:43:54 David Behan replied:
Just to fix that up a bit:

<%=Replace(("vProdDesc", VbCrLf, "<br>"%>

Regards,

Dave

_________________________
WinXP : IIS 5.1 : StudioMX : ASP : VBScript
www.dynamic.ie

Reply to this topic