End For

Command group Flag affected Reversible Execute on client Platform(s)
Constructs NO NO YES All

Syntax

End For

Description

This command ends a For loop. The two For loops For field value and For each line in list perform looping type operations. The End For command terminates both these commands.

Example

Do  iMyList.$define(iMyCol1)
Do iMyList.$add('A')
Do iMyList.$add('B')
For iMyList.$line from 1 to iMyList.$linecount step 1
  Do iMyList.$loadcols()
  OK message {Line [iMyList.$line] = [iMyCol1]}
End For
Set current list iMyList
For each line in list from 1 to #LN step 1
  Load from list
  OK message {Line [iMyList.$line] = [iMyCol1]}
End For