Micro Focus QTP (UFT) Forums
What is the difference between 'On Error GoTo 0' and 'Err.Clear' - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: What is the difference between 'On Error GoTo 0' and 'Err.Clear' (/Thread-What-is-the-difference-between-On-Error-GoTo-0-and-Err-Clear)



What is the difference between 'On Error GoTo 0' and 'Err.Clear' - blanchedsouza - 03-26-2008

What is the difference between 'On Error GoTo 0' and 'Err.Clear'


RE: What is the difference between 'On Error GoTo 0' and 'Err.Clear' - Ankur - 04-06-2008

"On Error GoTo 0" disables error handling if you have previously enabled it using On Error Resume Next.

err.clear--- this clears property settings of the er object.

you can get more details in QTP help section