Program construct for looping through a set of values.
Drop this set of objects down into your program wherever you need to serially process each member of an array.
menu: veeos ==> Coding ==> forEach
library: none- objects only
While this is functionally the same as the forEach native object introduced with VEE8, this rendition will work equally in any version of VEE and it provides an advtange in that the index is available for use.
In some cases it may well be desirable to create an index variable for use in
other sections of the program. This allows you to know where in a given list you
are currently indexed. One way to do this is with a setVar(),
as in
or, if you would like to reduce the scope of the index variable, you can use a
Declare Variable first, as in
VEE 7.0+, all platforms