Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Exit Do loop
#1
Not Solved
Hello,

I have the do...while loop as below.

PHP Code:
Do While vbwindow(...).exist false

............

Loop 

If the vbwindow does not exist, do while loop takes more than 10 minutes to decide whether vbwindow exist or not. How can I exit out the do while loop if vbwindow does not exist in 30 seconds? How would I put the
PHP Code:
exit do 
inside the do while?

-S

lkjlkj
Reply
#2
Not Solved
Is this what you are looking for?

Code:
Do While vbwindow(...).exist = false
IntCounter=0
wait 1
IntCounter = IntCounter +1
If IntCounter = 30 Then
Exit Do
End If

Loop
Basanth
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Infinit loop Suma Parimal 1 2,636 05-29-2014, 01:22 PM
Last Post: basanth27
Smile Infinite FOR loop issue Sivapratha 3 4,177 04-01-2013, 09:44 AM
Last Post: basanth27
  Do Until loop returning failure mitch 0 3,453 05-27-2011, 12:20 AM
Last Post: mitch
  If Then statement inside For loop Mala 3 3,954 02-23-2011, 10:13 PM
Last Post: basanth27
  For loop after couple of If then else statements Mala 4 4,888 02-16-2011, 06:37 AM
Last Post: Mala

Forum Jump:


Users browsing this thread: 1 Guest(s)