Search here for all the info you want in this Blog

exiting from loops



exiting from loops


exit for :
for i=0 to 100 step 1
msgbox i
          if i=20 then
                   exit for
          end if
next

exit do:

i=0
do while i<=100
msgbox i
          if i=20 then
          exit do
          end if
i=i+1
loop

No comments:

Post a Comment