Micro Focus QTP (UFT) Forums
Control Statements - 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: UFT / QTP Others (https://www.learnqtp.com/forums/Forum-UFT-QTP-Others)
+--- Thread: Control Statements (/Thread-Control-Statements)



Control Statements - piyush957 - 11-24-2011

Hi Team,
(1)how can go to any particular line number\statement in QTP? As we use GO TO in C language.
I want to go on certain line\statement in run time. I want to add many Lables in code

(2) how can I use SWITCH case.

Regards
Piyush


RE: Control Statements - Ankesh - 11-24-2011

Hi Piyush,

1) Goto is not supported.. Still you can use Do loop or Do while loop upto a certain extent.
2) Switch case is almost same as If Condition.

Please refer QTP help for both the points and see if that helps.

Regards,
Ankesh


RE: Control Statements - piyush957 - 11-25-2011

Thanks Ankesh.
Much appreciated. I am using IF for Both the questions.