VBScript TutorialIntroductionVBScript Editors VBScript Syntax VBScript Variables VBScript Arrays VBScript Date VBScript If Statements VBScript Select Case VBScript While Loop VBScript For Loop VBScript Operators VBScript Functions Summary Got a MySpace Page?Get "www.yourname.com" for your MySpace page. Learn how >>. |
VBScript While LoopIn VBScript (and virtually all other languages), "loops" enable your program to continuously execute a block of code for a given number of times, or while a given condition is true. The VBScript While Loop executes code while a condition is true. Example While LoopThis example displays a the value of a counter while the count is less than or equal to 8.
This results in:
Hours worked: 0
Hours worked: 1 Hours worked: 2 Hours worked: 3 Hours worked: 4 Hours worked: 5 Hours worked: 6 Hours worked: 7 Hours worked: 8 Home time! Exlanation of code
Enjoy this website?
Oh, and thank you for supporting Quackit! |
FREE Hosting!With every domain name you register with ZappyHost, you get FREE (ad supported) hosting.PLUS you get:
Featured Template:
(Build your websites in minutes!) |