最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
asp取得字符长度函数
时间:2022-07-02 22:43:12 编辑:袖梨 来源:一聚教程网
function gotTopic(str,strlen)
if str="" then
gotTopic=""
exit function
end if
dim l,t,c, i
str=replace(replace(replace(replace(str," "," "),""",chr(34)),">",">"),"<","<")
l=len(str)
t=0
for i=1 to l
c=Abs(Asc(Mid(str,i,1)))
if c>255 then
t=t+2
else
t=t+1
end if
if t>=strlen then
gotTopic=left(str,i) & "…"
exit for
else
gotTopic=str
end if
next
gotTopic=replace(replace(replace(replace(gotTopic," "," "),chr(34),"""),">",">"),"<","<")
end function
相关文章
- 超级机器人大战Y怎么设置中文 Steam版中文设置教程 09-16
- 无主之地4boss霍拉斯怎么打 霍拉斯打法攻略 09-16
- 原神少女什么时候入池 少女哥伦比娅上线时间 09-16
- 无主之地4全强化人神殿位置攻略 强化人神殿全收集图鉴 09-16
- 大侠立志传琅琊剑阁怎么升级-琅琊剑阁升级方法 09-16
- 原神奈芙尔是几星 奈芙尔星级介绍 09-16