摘要: Dim a As DateDim b As Datea = System.DateTime.Nowb = CDate(chkExport.Text)Dim ts As System.TimeSpants = a.Subtract(b)Dim pp As Integerpp = CInt(ts.TotalDays) 阅读全文
posted @ 2005-09-12 04:54 竹子 阅读(1192) 评论(0) 推荐(0) 编辑
摘要: VBscript常用函数: 1.数值型函数: abs(num): 返回绝对值 sgn(num): num>0 1; num=0 0; num0 int(num): 取整 int(99.8)=99; int(-99.2)=100 fix(num): 取整 fix(99.8)=99; fix(-99.2)=99 round(num,n): 四舍五入取小数位 round(3.14159,3)=3.142... 阅读全文
posted @ 2005-09-12 04:47 竹子 阅读(956) 评论(0) 推荐(0) 编辑