Because of QTP, I now know that its possible to stare a hole in your monitor trying to puzzle out why a section of code isn't working like you'd expect it to. And here's what I mean:
If Browser("Browser").Page("Page").Link("Link).Exist(0) = True then
Reporter.ReportEvent micPass "Link Found", "YES"
End If
Now I stared a hole in my monitor this afternoon trying to figure out why if the *.Exists(0) in debug mode equals True, then why on earth is this line of code not reporting a true condition for the If Then.
Why .... Why ...
I added debug login, I added msgbox reports I added all sorts of debug logic to try to figure out why this wasn't working.
Finally...I started looking at txt files that represent other scripts and code I've written in the past...when suddenly I note that these other scripts if they are evaluating an Exists(0) function they just say
If Browser("Browser").Page("Page").Link("Link).Exist(0) Then
Reporter.ReportEvent micPass "Link Found", "YES"
End If
WITH NO = TRUE!!!
And so I removed the = TRUE from my code and PRESTO everything started working...everything was right with the world again.
DUH.....Talk about making you feel stupid....
Oh well..at least I found the bug...