6230 Non-numeric control variable
Cause
This error occurs if a non-numeric control variable is specified in a foreach instruction that iterates over a range of numeric values. The following is an example of this error.
vars
s : String;
begin
foreach s in 1 to 10 do // error, s is non-numeric
write s;
endforeach;
end;
Action
Replace the control variable in the foreach instruction with a variable of appropriate numeric primitive type. A numeric variable is of type Integer, Real, Decimal, Date, Time, or TimeStamp (for details about these primitive types, see "Primitive Types", in Chapter 1 of the JADE Encyclopaedia of Primitive Types).
Alternatively, if the foreach instruction is intended to iterate over a collection of objects instead of a range of numeric values, modify the collection-expression of the instruction to specify a collection of objects.