日期:2014-05-17  浏览次数:21066 次

if 字段 mod 60=0 then在网页中怎么不能用呢,请大家帮忙
我现在是要把不足一分钟的换算成1分钟,例如字段值是30秒的,要换算成1分钟,字段值是160秒的换算成3分钟,现在我在网页上用的是:
<% timelens=rs( "timelen ") if   timelens   mod   60=0   then      
                      timelen_s=timelens/60    
                else
                      timelen_s=timelens/60+1
                end   if%> <%=timelen_s%>
一到这if   timelens   mod   60=0   then       就执行错误,提示缺少   'End '   ,类型不匹配
郁闷的很,不知道该怎么写才是对的。请大家帮忙,谢谢。


------解决方案--------------------
timelens= Cint(rs( "timelen ").value)