读书人

怎么查询一个text里 出现的字符的个数

发布时间: 2012-01-12 22:11:58 作者: rapoo

如何查询一个text里 出现的字符的个数? 我用了InStr方法无法实现
如何查询一个text里 出现的字符的个数?我用了InStr方法无法实现


还有其他方法吗?

[解决办法]
dim strS as string,strF as string,i as integer,intCount as integer
strS= "FDFSDFDFDFEEEENSDED "
strF= "F "
for i=0 to len(strS)
if mid(strS,i,1)=strF then intCount=intCount+1
next

debug.print intCount

楼主想要这个吗?

读书人网 >VB

热点推荐