3.下面我是用Instr函数实现的
Sub main
Dim undertest as String
Dim position1 as Integer
Dim position2 as Integer
'需要验证的两行字符
undertest = "hello" & chr(10) & "word"
msgbox undertest
position1=InStr(undertest,"hello")
position2=InStr(undertest,"wod")
If position1 AND position2 then
SQALogMessage sqaPass, "找到字符串", ""
msgbox "success"
Else
SQALogMessage sqaFail, "未找到字符串", ""
msgbox "fail"
End If
End Sub