Yeah, you should start your code something like: FOR I=0 TO N SPSET I,X,X SPHIDE I NEXT