手机
当前位置:查字典教程网 >编程开发 >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代码截取字符串

在线人数写法

asp数组使用(2)

asp 简单数据库连接类

asp 过滤数组重复数据

多字段模糊搜索的函数

asp简单文本计数器

asp入门:asp如何保存数据

精品推荐
分类导航