There are three types of loops used in Visual Basic:
For...Next
Do While
Loop...Until
Simple Definitions:
For...Next: Fixed Number, Identical Processing
Do While: Monitors Status Quo, Reacts to change, Sensor
Loop Until: Target (loop until a pre-designated target has bee reached)
Explained Definitions:
The For loop is used to run a execute of code a specific number of times designated by the . The For...Next loop changes a variable every time it runs, so that the function of the loop can be specific for each individual item.
The Do While loop will a piece of code if a certain condition/variable is true. If the loop starts running there must be a change in code eventually of the loop will run forever and never stop. If the condition is initially false/not true, the Do While loop does not run at all unless the Loop is re-run and the condition is true.
The Loop...Until loop is intially the same as the Do While loop although that it will always run the code inside even before checking whether the condition is true. Please note that the code inside the loop will always run at least once even if the condition is false.
Nice, did you type it?
ReplyDeleteCan you change the font to a san-serif font and make the colour white. Cheers