Chapter 6 Summary


[Page 301 (continued)]

  1. A Do loop repeatedly executes a block of statements either as long as or until a certain condition is true. The condition can be checked either at the top of the loop or at the bottom.

  2. The Peek method can be used to tell us if we have read to the end of a file.

  3. As various items of data are processed by a loop, a counter can be used to keep track of the number of items, and an accumulator can be used to sum numerical values.

  4. A flag is a Boolean variable, used to indicate whether a certain event has occurred.

  5. A For ... Next loop repeats a block of statements a fixed number of times. The control variable assumes an initial value and increments by one after each pass through the loop until it reaches the terminating value. Alternative increment values can be specified with the Step keyword.




An Introduction to Programming Using Visual Basic 2005
Introduction to Programming Using Visual Basic 2005, An (6th Edition)
ISBN: 0130306541
EAN: 2147483647
Year: 2006
Pages: 164

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net