最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
asp 中英文字符长度检测判断函数
时间:2022-07-02 22:34:51 编辑:袖梨 来源:一聚教程网
中英文字符长度检测判断函数
function strLength(str)
ON ERROR RESUME NEXT
dim WINNT_CHINESE
WINNT_CHINESE = (len("论坛")=2)
if WINNT_CHINESE then
dim l,t,c
dim i
l=len(str)
t=l
for i=1 to l
c=asc(mid(str,i,1))
if c
if c>255 then
t=t+1
End if
next
strLength=t
else
strLength=len(str)
End if
if err.number0 then err.clear
End function
相关文章
- 逆水寒无相玄袍如何获取 07-16
- 孤女困魇有哪些游戏特色内容 07-16
- 纸嫁衣8第二章木门如何打开 07-16
- 燕云十六声挐云蛇怎么打-拏云蛇打法教学 07-16
- 怪物猎人荒野1.021版本更新了什么 07-16
- 下一站江湖2风神腿任务如何完成 07-16