Login
网站首页 > 文章中心 > VB6

VB判断字符串包含某个字符的数量 统计函数

作者:小编 更新时间:2023-10-24 19:38:43 浏览量:194人看过

Public Function panduanbaohan(ByVal strInput As String, ByVal strChar As String) As Long   '判断包含个数  = panduanbaohan(Text1.Text, "/")

Dim s() As String

If Len(Trim(strInput)) = 0 Then

panduanbaohan = 0

Else

s = Split(strInput, strChar)

panduanbaohan = UBound(s)

End If

End Function


版权声明:倡导尊重与保护知识产权,本站有部分资源、图片来源于网络,如有侵权,请联系我们修改或者删除处理。
转载请说明来源于"土嘎嘎" 本文地址:http://www.tugaga.com/jishu/vb/1762.html
<<上一篇 2023-10-24
下一篇 >> 2023-10-24

编辑推荐

热门文章