![]() To exit a For….Next Loop, you can place the Exit For statement within the loop and it is typically used together with the If….Then….statement. ![]() The syntax for looping using the For…Next loop is: For counter=startNumber to endNumber and the While….End while loop 11.1 Looping using the For….Next Loop ![]() In Visual Basic 2010, we have three types of Loops, they are the For….Next loop, the Do loop. For example, we can write VB code that adds a series of numbers until the sum exceeds a certain value or a VB program that asks the user to enter data repeatedly until he or she enters the word ‘Finish’. In Visual Basic 2010 programming, a sequence of instructions that is repeated until a certain condition is met is called looping.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |