统计字符串中出现的次数 不指定

Else , 2007/08/14 17:30 , 代码片段,演示也有 , Comments(0) , Reads(2396) , Via Original

 Function   StrNumber(StrInfo,StrTemp)
 'StrInfo   总字符  
 'StrTemp字符串  
    If   StrInfo   <>""   And   StrTemp<>""   And   len(StrInfo)>len(StrTemp)   Then  
      StrNumber=(len(StrInfo)-len(replace(StrInfo,StrTemp   ,"")))/Len(StrTemp)  
    End   If  
 End   Function
Tags: ,
Add a comment

Nickname

Site URI

Email

Enable HTML Enable UBB Enable Emots Hidden Remember [Login] [Register]