Micro Focus QTP (UFT) Forums
"Coninue" statement in QTP - 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: "Coninue" statement in QTP (/Thread-Coninue-statement-in-QTP)



"Coninue" statement in QTP - caze - 12-14-2009

Do we have a continue statement in QTP/UFT? If yes, how to use it in VB Script?


RE: "Coninue" statement in QTP - niranjan - 12-15-2009

There is no Continue statement in VBScript, and so QTP does not support continue statement as well.

The only way to really simulate continue is to just nest all of your code in a bunch of nested If-Then blocks. Very ugly, but logically the same.


RE: "Coninue" statement in QTP - jsknight1969 - 12-15-2009

Unless you are talking about Error trapping. In that case

Code:
On Error resume next

This will cause your code to continue on the next line when an error is encountered.

To reset your error trapping

Code:
On error goto 0



RE: "Coninue" statement in QTP - venkatbatchu - 12-16-2009

Hi Caze,

Continues running the timer from the time it stopped (without resetting it).

Syntax:
Code:
MercuryTimers.Timer(TimerName).Continue


Regards,
Venkat.Batchu