PMFJI-
Right. That's how a FOR loop works. The FOR line only executes once. Which is nice: it's far more efficient and you could do
FOR lnCnt = 1 TO ALEN(Thisform,.array,1)
If your loop is variable, then IMHO a FOR LOOP is the wrong one to use. Far better to use a DO WHILE.
>No good, because ...
>LOCAL x, y
>y = 10
>for x = 1 to y
> ? x
> IF x = 5
> y = 15
> ENDIF
>ENDFOR
>
>
>Only prints from 1 to 10.