手机
当前位置:查字典教程网 >编程开发 >ASP教程 >asp 判断数字是否整形
asp 判断数字是否整形
摘要:functionisInteger(para)onerrorresumenextdimstrdiml,iifisNUll(para)then...

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

【asp 判断数字是否整形】相关文章:

asp 简单数据库连接类

asp入门:asp如何保存数据

利用Split函数进行多关键字检索

asp获取数据库的连接属性的方法

Asp类 的数据库领域

asp 过滤数组重复数据

asp从缓存读数据实例

ASP中如何判断一个字符是不是汉字

asp缓存类

在线人数写法

精品推荐
分类导航