Current Help System: PC-DMIS BASIC (View Core Help)

## For each … Next Statement

For Each element in group

[statements]

[Exit For]

[statements]

Next [element]

Repeats the group of statments for each element in an array of a collection. For each … Next statements can be nested if each loop element is unique. The For Each…Next statement cannot be used with and array of user defined types.

More:

Example: