手机
当前位置:查字典教程网 >编程开发 >ASP教程 >asp 中英文字符长度检测判断函数
asp 中英文字符长度检测判断函数
摘要:functionstrLength(str)ONERRORRESUMENEXTdimWINNT_CHINESEWINNT_CHINESE=(...

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<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

【asp 中英文字符长度检测判断函数】相关文章:

asp之字符串操作函数

用asp实现检测文件编码

asp 字符串连接数据库方法

asp无限分级(递归调用)

在ASP中利用ADO显示Excel文件内容的函数

收集asp的常用函数

一个实用asp分页函数

asp FSO 读写文件本文件实现代码

一段在asp中加密与解密对应的函数

FSO文件对象介绍及常用函数

精品推荐
分类导航