Wierd results using Execute method
I'm using the Excecute method and getting strange results. Never mind the entire code, the relevant section goes something like this:
sCondition = "vbwindow(""vbname:=Form1"").exist"
Excecute "If " & sCondition & " Then: bResult = True: Else: bResult = False: End If"
(I know you're wondering why the hell should i use the execute overkill for something like that, but it's a downgrade of the actual code)
The code works well when the window does indeed exist, however, if the window doesn't exist, the qtp gets stuck. If i press pause & then play again, it manages to continue and run through the code as expected.
I wonder if you know why this might be happenning.
Re: Wierd results using Execute method
try using this
sCondition = "vbwindow(""vbname:=Form1"").exist(0)"