keep the spaces before the description line

E

eddie wang

How to keep the spaces before the description line in the following
code? Right now, it displays like "Net Income", but I like to have
spaces before the words like " Net Income". The database value is "
Net Income". Thanks!


<td align="right"><Font class=content4><%=ars.Fields("LINES")%></td>
 
E

eddie wang

I use the replace function like the following and it doesn't work.

<td align="left" bgcolor="#FFFF99"><Font
class=content4><%=replace(ars.Fields("line_item_nm"),
"","")%></font></td>
 
A

Aaron Bertrand - MVP

I use the replace function like the following and it doesn't work.
<td align="left" bgcolor="#FFFF99"><Font
class=content4><%=replace(ars.Fields("line_item_nm"),
"","")%></font></td>

Who said to use it like that? You're replacing nothing with nothing. Of
course, it "doesn't work."
 
B

Bob Lehmann

Maybe you should try the example you were given....
<%=replace(ars.Fields("LINES"), " ", "&nbsp;")%>

Instead of what you wrote....
<%=replace(ars.Fields("line_item_nm"),"","")%>

Bob Lehmann
 
E

eddie wang

I found out that the following works. Thanks.

replace(ars.fields("lines"), " ", "&nbsp;")
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,596
Members
45,143
Latest member
SterlingLa
Top