where did u get this CompareMethod.Text from?
Also, i don't understand the way you have put (=) comparison operator
Correct syntax would be:
Also, i don't understand the way you have put (=) comparison operator
Correct syntax would be:
Code:
vclose = "22/32/45" //As an ex
searchString = "/"
Dim tmpVar
tmpVar = inStr (1,vClose, searchString, 1) //1 for text comparison
If (tmpVar = 3) then
msgbox tmpVar
else
...
End If
Want to fast track your QTP/UFT Learning? Join our UFT Training Course