Substituting the array values for the first three executions of the loops...

Quote Originally Posted by Art View Post
This works:
Code:
rotatearray:
i = 95							'
FOR cntx = 1 to 95					'
segs[i] = segs[i - 1]					'
i = i - 1						'
NEXT cntx						'
segs[0] = newcell					'
return							'

segs[95] = segs[94]
segs[94] = segs[93]
segs[93] = segs[92]
.....

Quote Originally Posted by Art View Post
This compiles, but doesn't work as expected:
Code:
rotatearray:
FOR cntx = 1 to 95					'
segs[cntx] = segs[cntx - 1]				'
NEXT cntx						'
segs[0] = newcell					'
return							'
Cheers, Art.
segs[1] = segs[0]
segs[2] = segs[1]
segs[3] = segs[2]

They dont do the same thing !!!!