首页 » Visual Basic » vb经典函数

vb经典函数

'返回一字符B在字符串A中出现的次数
Function strCount(strA , strB ) 
lngA = Len(strA)
lngB = Len(strB)
lngC = Len(Replace(strA, strB, ""))
strCount = (lngA - lngC) / lngB
End Function

,

转发到新浪微博 转发到新浪微博

目前这篇文章有22条评论(Rss)

  1. bancuri prostii | #1
    05/17/2012 at 06:58

    Nice post. I learn something more challenging on different blogs everyday. It will always be stimulating to read content from other writers and practice a little something from their store. I’d prefer to use some with the content on my blog whether you don’t mind. Natually I’ll give you a link on your web blog. Thanks for sharing.

  2. www.nasza klasa | #2
    05/17/2012 at 08:19

    Only a smiling visitant here to share the love (:, btw outstanding design .

我要评论