02-08-2019, 12:36 AM
I'm running a script that includes this code:
If SAPGuiSession("SAPGuiSession").SAPGuiWindow("Person 1 Entry").Exist(1) Then
...
Else
...
End If
When the object exists, there is no problem, but when it does not (and that's supposed to happen on some occasions, going to the Else clause), I get a general run error.
I tried looking at the error with a MsgBox. The error code is -2147417851.
I'm running UFT version 14.51 build 1566 on a Windows 7 machine.
Thanks for your help.
If SAPGuiSession("SAPGuiSession").SAPGuiWindow("Person 1 Entry").Exist(1) Then
...
Else
...
End If
When the object exists, there is no problem, but when it does not (and that's supposed to happen on some occasions, going to the Else clause), I get a general run error.
I tried looking at the error with a MsgBox. The error code is -2147417851.
I'm running UFT version 14.51 build 1566 on a Windows 7 machine.
Thanks for your help.