Visual Basic.NET Programming. Beginner Lesson 15. Do While

preview_player
Показать описание
This is the fifteenth in a series of computer science video tutorials for beginners, about programming with Visual Basic.NET (VB.NET) in Visual Studio. In this lesson you will learn how to execute a block of code repeatedly using a DO WHILE loop. This illustrates the third fundamental construct of high level programming, namely iteration. Iteration is also known as looping. You will see how a DO WHILE loop can do the same job as a FOR NEXT loop, although it is necessary for the programmer to write extra code to increment the variable used to count how many times the code inside the loop executes. You will also see that the exit condition of a DO WHILE loop can be written at the top of the loop, or the bottom of the loop as LOOP WHILE. The exit condition can also be written as DO UNTIL or LOOP UNTIL, which means there are four different variations of the DO loop.
Рекомендации по теме
Комментарии
Автор

Now I won't be intimidated by Do Loops....Thanks so much....Love the vids, don't understand why there aren't more Like. Your awesome...JT

jtlunsford
Автор

You helped me alot through my school projects man thx alot

mrnub
Автор

I'm referring to it as the Do While loop because most people Do, *while* *they* *are* *in* *the* *mood* .

feraudyh
Автор

How can you exit a loop by clicking a button? I have a record button that has the loop within its code, but I want the loop to end when I click the next button. I already have string.empty code for all my labels when I click next, but my loop doesn't work.

ade