"squirreltown" wrote:
I am trying to draw a list using a for/each statement with multiple variables. What i am getting is each of ten items drawn in each of ten slots, where i want one item in each slot.
Is this possible? I am not seeing it yet.
for i = 0 to 9
for n = 1 to 10
for p = 211 to 589 step 42
m.screen.drawtext( n.toStr()+")" , 810, p, grey, font6) 'playlist:
m.screen.drawtext( m.item[i]["title"] ,850, p, grey, font6) ' song title
end for
end for
end for
Thanks
Not sure what you're trying to do exactly, but does this help? It doesn't look like you need three loops, although you might need two, depending on what it is supposed to do.
p_array = [211, 253, 295, 337, 379, 412, 463, 505, 547, 589]
for i = 0 to 9
m.screen.drawtext((i+1).toStr()+")", 810, p_array[i], grey, font6) 'playlist:
m.screen.drawtext(m.item[i]["title"], 850, p_array[i], grey, font6) 'song title
end for
If not, can you share more of the channel (perhaps a pared down runnable example)?
Remoku.tv - A free web app for Roku Remote Control!
Want to control your Roku from nearly any phone, computer or tablet? Get started at http://help.remoku.tv
by Apps4TV - Applications for television and beyond: http://www.apps4tv.com