一聚教程网:一个值得你收藏的教程网站

热门教程

判断字符串中相同字符的个数

时间:2022-07-02 22:36:00 编辑:袖梨 来源:一聚教程网


 '==============================
 '函 数 名: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

热门栏目