展会信息港展会大全

asp 特殊字符屏蔽代码 android软件开发教程
来源:互联网   发布日期:2016-03-01 11:05:28   浏览:1901次  

导读:function strreplace(str) if str = then strreplace = str else strreplace = replace(str,','') end if end function 检测数字函数 function check_num(str) dim i For i = 1 To Len(str) if Asc(Mid(str, i, 1)) 48 or Asc(Mid(str, i, 1)) 57 then check...

function strreplace(str)

if str = "" then

strreplace = str

else

strreplace = replace(str,"'","''")

end if

end function

检测数字函数

function check_num(str)

dim i

For i = 1 To Len(str)

ifAsc(Mid(str, i, 1)) < 48orAsc(Mid(str, i, 1)) > 57 then

check_num=false

exit function

else

check_num=true

end if

Next

end function

function cutstr(str,strlen,more,url)

if len(str)>strlen then

str=left(str,strlen) & "......"

End if

if (len(str)>strlen) and more then

str=str+"[url="+url+"]点这里查看详情[/url]"

End if

cutstr=str

End function

赞助本站

人工智能实验室

相关热词: 开发 编程 android

AiLab云推荐
展开

热门栏目HotCates

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