Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
If "only" then...
#1
Not Solved
Hello,

I have code that searches for WebElemnts, etc to determine which dialog box i have found. However, sometimes I want my If to look if only a few specific elements, etc are found.

Currently, my code is execiuted if all three of these are found:
Code:
blFlagZ1 = .WebTable("Image Access").Exist(0)
blFlagZ2 =  .WebEdit("StartDate").Exist(0)
blFlagZ3 =  .WebEdit("EndDate").Exist(0)

If blFlagZ1="True" AND blFlagZ2="True" AND blFlagZ3="True" Then

Also, this code will execute
Code:
If blFlagZ2="True" AND blFlagZ3="True" Then

Some times only these two elements (blFlagZ2="True" AND blFlagZ3="True") are on the dialog box are there but since most all of my dialog boxes have these two elements, the If is always True.

How can i code If "only" blFlagZ2="True" AND blFlagZ3="True" then ???

Any thoughts, ideas suggestions?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)