编程论坛
注册
登录
编程论坛
→
ASP技术论坛
[求助]在asp中怎样让单元格的值为零,的“0”字不显示出来呀!
zmp
发布于 2007-08-16 12:26, 965 次点击
在asp中怎样让单元格的值为零,的“0”字不显示出来呀!
<td align="center"><%=rsl("total")%></td>
因为有很多数据是0值,如果全部显示出来眼都花了,所以只想显示出大小零的数据,零值不显示出来
4 回复
#2
qhscqb
2007-08-16 13:01
加一个判断:
if rsl("total")<=0 then
response.write "&nbsp;"
else
response.write rsl("total")
end if
#3
zmp
2007-08-16 13:30
回复:(qhscqb)加一个判断:if rsl(
谢谢指点!
#4
涂涛
2007-08-16 17:48
这样也可以
if rsl("total")<>"0" then
response.write rsl("total")"&nbsp;"
else
response.write "&nbsp;"
end if
#5
涂涛
2007-08-16 17:50
不好意思
response.write rsl("total") 第二句是这样的
1