手机
当前位置:查字典教程网 >编程开发 >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 html转换字符程序

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

ASP中字符与数字操作函数总结

asp数组使用(2)

asp 日期格式化函数

asp数据库防下载处理

asp防止刷新功能实现代码

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

精品推荐
分类导航