Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 42400

VS 2008 Do Until/For Next loop return to start of the loop ?

$
0
0
Hi !
I need a fast help from you guys,
i need to make a code that will work like this:
Code:

Do Until num1 > num2
      If something Is Nothing Then
        'Return to start of the loop, without executing the code outside this if
        num1 = num1 + 1
      End If
    'Do Something
    num1 = num1 + 1
Loop

When i use Return then it kinda stops the loop (im doing this in a BackgroundWorker)

Viewing all articles
Browse latest Browse all 42400

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>