Actually, the STEP -1 shouldn't be there either. The line should just be: FOR X=1 TO NO1