cancel
Showing results for 
Search instead for 
Did you mean: 

on Error GOto label

SOLVED
Ismail_BHIHI
New Contributor

on Error GOto label

The 3 Error Handling States in Visual Basic are :

- On Error Goto 0: works in test complete

-  On Error Resume: works in test complete

- On Error Goto [label]: Doesn't work in test complete ??????

 

My question is :

Why  On Error Goto [label]  doesn't work in test complete? 

 

Ismail_BHIHI_0-1613481721434.png

Thanks 

Ismail

1 ACCEPTED SOLUTION

Accepted Solutions
HKosova
Moderator

Re: on Error GOto label

TestComplete uses VBScript (not Visual Basic or VBA). VBScript only supports "On Error Resume Next" and "On Error Goto 0". See https://ss64.com/vb/onerror.html for details.


Helen Kosova
SmartBear Documentation Team Lead
________________________
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️

View solution in original post

2 REPLIES 2
HKosova
Moderator

Re: on Error GOto label

TestComplete uses VBScript (not Visual Basic or VBA). VBScript only supports "On Error Resume Next" and "On Error Goto 0". See https://ss64.com/vb/onerror.html for details.


Helen Kosova
SmartBear Documentation Team Lead
________________________
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️

View solution in original post

Ismail_BHIHI
New Contributor

Re: on Error GOto label

Thanks, it is clear now :).

New Here?
Join us and watch the welcome video:
Announcements