STATEMENT: For Each
Implemented in version 2.0
. . .
conditional statement repeats a block of code for each element of an array or a collection of data.
You can use
statements to exit out of a
loop. You can place
statements inside of other conditional statements. You must end all
or you will get an error message.
In the example, the variable i will assume the value of each element in the array, one at a time, in order, from the first element in the array up to the last element actually being used.
For Each i in myarray
Rem You can place all of the code you desire inside a For Each loop
Copyright 1999-2004 by Infinite Software Solutions, Inc. All rights reserved.