标题:
vbscript计算文本中某个字符的数量
[打印本页]
作者:
wanghaiye
时间:
2010-2-14 13:24
标题:
vbscript计算文本中某个字符的数量
请问如何用vbscript计算文本中包含某个字符的数量,急
[
Last edited by wanghaiye on 2010-2-14 at 13:49
]
作者:
slore
时间:
2010-2-14 15:09
split
ubound
作者:
slore
时间:
2010-2-14 15:09
instr慢慢找。。。累加也可以
作者:
whitecloud
时间:
2010-2-14 16:31
一个函数不行,要几个配合才能做到。。。
Len是算出字符的总数的。。。
作者:
523066680
时间:
2010-2-15 13:15
以该字符作为分割
用split函数
数组=split.....
然后用ubound查看 数组的最大可用下标。
作者:
523066680
时间:
2010-2-15 13:19
str="aaa1235a4353advcxaaaa"
arr=split(str,"a")
msgbox ubound(arr)
同2喽
[
Last edited by 523066680 on 2010-2-15 at 13:23
]
欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/)
Powered by Discuz! 2.5