Visual Basic.NET Programming. Beginner Lesson 16. Condition Controlled Loops

preview_player
Показать описание
This is the sixteenth 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 what is meant by a condition controlled loop (as compared with a count controlled loop). You will see how a DO WHILE loop can be used with an exit condition that does not rely on a variable that keeps count of the number of loop iterations. You will also see how a DO WHILE loop can be used to validate input data as it is captured, for example if you want the user to input numeric data only. An example of explicit data type conversion, which is also known as casting, is also demonstrated.
Рекомендации по теме
Комментарии
Автор

These video are absolutely fantastic, your style of presentation is one of the best I have ever experienced. I am learning because of your calm, concise presentation. Thank you so much, I hope this course will eventually go onto more advanced things like saving data to an MySQL etc. 20/10

BobRoffey
Автор

The CInt() function taught in this video helped me learn something I was struggling to figure out on my own during Lesson 14. I had been trying to figure out how to make my program only accept string input that could be converted to integers using Do While IsNumeric(string) = False and then Msgbox("enter a number instead"). That was an exercise meant for For-Next loops though, so I hadn't learned about do-while loops yet.

Also interesting to see that "= False", "<> True", and "Do While Not IsNumeric()" all mean the same thing. In Python it's "!=". So much flexibility with do-whiles in Vbnet.

wesleyc
Автор

I tried the Do While at the end because I wanted to see what would happen if i entered 55.5. Well, it rounds up/dn. Thanks so much for making me think and schooling me/us. Love the presentation, legibility, voice is easily understandable and the programs all make

jtlunsford
Автор

Got a question. Why is the cancel button in InputBox is not functioning as "Cancel" if you want to cancel it? is there a way to exit the sub routine once you press the cancel?

damien
Автор

thanks sir. great information received

brainpowerofficial
Автор

Nowhere found how to use vba code with WHERE condition. Kindly present a video tutorial on it.

satyabanukil