导读:判断字符串中相同字符的个数=============================函 数 名:GetCount作 用:判断字符串中相同字符的个数参 数:=====...
判断字符串中相同字符的个数
=============================
函 数 名:GetCount
作用:判断字符串中相同字符的个数
参数:
==============================
Private Function GetCount(Strs,Word)
Dim N1,N2,N3
N1=Len(Strs)
N2=Len(Replace(Strs,Word,""))
N3=Len(Word)
GetCount=Clng(((N1-N2)/N3))
End Function