Micro Focus QTP (UFT) Forums
Infinit loop - 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: Infinit loop (/Thread-Infinit-loop)



Infinit loop - Suma Parimal - 05-23-2014

Hi,

If we use Do..While loop for infinit itereation and given execution, then how can we handle this by using VB Script?

Please somebody help me on this.....


RE: Infinit loop - basanth27 - 05-29-2014

Exit after your condition is achieved by using,
Do
If 'your condition match' then
Exit Do
End If
While 'whatever value you are waiting for'