ITSourceCode.com

We Exist to Provide 100% Free Source Code and Tutorials

Custom Search

17-Do Until Loop

 

In Visual Basic, all loops have a similar purpose that make block of statements to repeat a number of times.

The Do Until and the Do While loop is a bit similar to each other. The only difference of the Do Until loop is, it uses a  slightly different syntax.

 

Take note that if you are not careful with the syntax of Do Until it will result in an infinite Loop

 

 

This is the example in doing Do Until Loop.

  1. Dim i As Integer = 0
  2. Do Until i = 10
  3.  
  4. i += 1
  5.  
  6. MsgBox(i)
  7. Loop

 

Facebook Comments

Check Your Domain Ranking

2 Comments

Add a Comment
  1. Its not my first time to go to see this website,
    i am browsing this web page dailly and take good data from here all the time.

    1. Thank you for visiting this site hope you’ll find it usefull. Please share this site to your friends.

Leave a Reply

Your email address will not be published. Required fields are marked *

ITSourceCode.com © 2016 Frontier Theme

Subscribe For Latest Updates

Signup for our newsletter and get notified when we publish new articles for free!