Apr
13

ASP判断数字是否整形     2009

 16:05    629    0   noel 程序 代码 源码 不指定 | |
  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

作者:noel@淘宝网女装新款秋装连衣裙裤子外套上衣_2012时尚女装新款 Ecmall二次开发-PHP技术
地址:http://www.laohucheng.com/post/310/
版权所有©转载时必须以链接形式注明作者和原始出处及本声明!

Tags: 引用(0)
发表评论
昵称 [注册]
密码 游客无需密码
网址
电邮
打开HTML 打开UBB 打开表情 隐藏 记住我