欢迎光临
我们一直在努力

判断文章中文字符数量

建站超值云服务器,限时71元/月

dim winnt_chinese

winnt_chinese = (len("论坛")=2)

function strlength(str)

on error resume next

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<0 then c=c+65536

if c>255 then

t=t+1

end if

next

strlength=t

else

strlength=len(str)

end if

if err.number<>0 then err.clear

end function

以上资料由动网先锋(http://www.aspsky.net)整理制作,转载请说明出处!

赞(0)
版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com 特别注意:本站所有转载文章言论不代表本站观点! 本站所提供的图片等素材,版权归原作者所有,如需使用,请与原作者联系。未经允许不得转载:IDC资讯中心 » 判断文章中文字符数量
分享到: 更多 (0)