var i=0;for(var a in list){ win.main.add('statictext', {x:15, y:15+i, width:470, height:70} , [a]);i+=5;} Should also work and helps show where the problem was in your code. You were only adding 1 to i each loop so the first iteration would add 5 the second 6 etc... I think you got confused between the 'for' loop and the…