关于字符串的问题
本人涉及到字符串包含的问题,即判断一个字符串是否包含另一个字符串或字母,请高手指教具体的代码!!
以下是我的错误代码,在此仅供抛砖引玉,望高手不吝赐教!!
Dim StrA
Dim StrB
Dim StrC
StrA = "Jason"
StrB = "Serena"
StrC = "o"
If StrA >= StrC Then
Reporter.ReportEvent 0, StrA, "contains" & " " & StrC
Else
Reporter.ReportEvent 1, StrA, "doesn't contain" & " " & StrC
End If
If StrB >= StrC Then
Reporter.ReportEvent 0, StrB, "contains" & " " & StrC
Else
Reporter.ReportEvent 1, StrB, "doesn't contain" & " " & StrC
End If