So Ive seen a number of programming questions answered here so Im going to post and hope for the best. Im stuck on a pretty simple javascript command, I am creating UI elements for an array and I want to add 5 units to the y height for each var in the iteration. Im aware of the ++ command but dont understand how its…
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…