Wednesday, April 14, 2010

VB Scripting - Looping Constructs

Previous11121314151617181920Next

Different types of Looping Constructs in VB Script and its usage in VB Scripting.


Looping constructs allows a user to run a group of statements or piece of code repeatedly that many times as desired by the user. There are some loops which repeat statements until the condition become false and others loops which repeat statements until the condition becomes true. Also there are those loops which repeat statements for a specific number of times.

There are different kinds of looping construct and based on the requirements we can use any of this Looping constructs. The are basically two types of looping constructs FOR and DO. Let’s look at them

FOR Looping Construct

1. For Next Loop
2. For Step Next Loop
3. For Each Next


DO looping Constructs

1. Do Loop While
2. Do Loop Until
3. Do While Loop
4. Do Until Loop
5. While WEnd Loop


Previous11121314151617181920Next

No comments:

Post a Comment