展会信息港展会大全

asp 判断数字是否整形 android软件开发教程
来源:互联网   发布日期:2016-03-01 11:05:20   浏览:1400次  

导读: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(...

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

赞助本站

人工智能实验室

相关热词: 开发 编程 android

AiLab云推荐
推荐内容
展开

热门栏目HotCates

Copyright © 2010-2024 AiLab Team. 人工智能实验室 版权所有    关于我们 | 联系我们 | 广告服务 | 公司动态 | 免责声明 | 隐私条款 | 工作机会 | 展会港