Hi,
Is there a better way of writing the following if loop? I'm afraid I might
have more Positions to define in future.
Position1 = Instr(LinkName, "Video")
Position2 = Instr(LinkName, "abc"
Position3 = Instr(xPath, "JJJ")
Position4 = Instr(Url, "javascript")
Position5 = Instr(Url, "mail")
Position6 = Instr(LinkName, "Skip")
If (Position1 = 0) AND (Position2 = 0) AND (Position3 = 0) AND (Position4
= 0) AND (Position5 = 0) AND (Position6 = 0) Then
msgbox "Hello"
End If
Thanks
--
--
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en
---
You received this message because you are subscribed to the Google Groups "QTP
- HP Quick Test Professional - Automated Software Testing" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.