龙盟编程博客 | 无障碍搜索 | 云盘搜索神器
快速搜索
主页 > web编程 > asp编程 >

asp 判断数字是否整形

时间:2012-12-31 22:56来源:未知 作者:admin 点击:
分享到:

asp  判断数字是否整形
function isInteger(para)
       on error resume next
       dim str
       dim l,i
       if isNUll(para) then
          isInteger=false
          exit function
       End if
       str=cstr(para)
       if trim(str)="" then
          isInteger=false
          exit function
       End if
       l=len(str)
       for i=1 to l
           if mid(str,i,1)>"9" or mid(str,i,1)<"0" then
              isInteger=false
              exit function
           End if
       next
       isInteger=true
       if err.number<>0 then err.clear
End function


精彩图集

赞助商链接