Page 94 - Computer Class 08
P. 94
For-next Loop
Syntax: For counter = startnumber To endnumber (Step Increment)
Block of Visual Basic statement
Next (counter)
Counter must be a numeric variable that controls the body of the loop. This counter is
initialized by statement startnumber before the first iteration of the loop, iteration is one loop
cycle. End number is a variable that controls when the loop ends. When the counter is
greater than end, the loop is not repeated, but the statement followed by Next is executed.
Next is the way of ending loop.
8 Visual Basic, also referred to as VB, is designed to make software development easy and
efficient, while still being powerful enough to create advanced program.
8 Project Explorer displays the different projects from modules associated with the other
modules.
8 Form Layout Window displays the form designed.
8 Label is added to provide instructions and guides to the users.
8 Text box is used to accept input from the user.
8 Command button is used to execute the event that is associated with it.
Objective Type Questions
A. Tick ( ) the correct one.3
1. Visual Basic language is designed to be “_______________ ”.
a) human readable b) robot readable
c) both a) & b) d) none of them
2. _______________ is added to Visual Basic to provide instructions and guides to the
users.
a) Lable b) Form
c) Application d) Spreadsheet
3. _______________ box is used to accept input from the user.
a) List b) Text
c) Both a) & b) d) None of them
Computer-8 94