2个回答
推荐于2018-03-13
展开全部
Dim str As String
Dim n As Integer
str = "abbcccd"
n = Len(str) - Len(Replace(str, "c", ""))
Dim n As Integer
str = "abbcccd"
n = Len(str) - Len(Replace(str, "c", ""))
本回答被网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
2013-05-16
展开全部
Private Sub Command1_Click()
Dim s As Integer
For i = 1 To Len(Text1)
If Mid(Text1, i, Len(Text2)) = Text2 Then
s = s + 1
End If
Next
Print s & "个" & Text2
End Sub
Dim s As Integer
For i = 1 To Len(Text1)
If Mid(Text1, i, Len(Text2)) = Text2 Then
s = s + 1
End If
Next
Print s & "个" & Text2
End Sub
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询