'm.li is global msg.GetIndex() var updated whenever msg.getmessage=isListFocused() orIslistSelected()
'itemindex is updated whenever IsListItemSelected()
else if m.li = 3 and mainposter[m.li].poster[itemindex].action="previous"
dialog.setmessageport(port)
dialog.show()
?"dialog should be showing"
m.co[3]=m.co[3]-m.limit 'page backwards
? "new offset"
?m.co[3]
?m.li
mainposter[3]=ReloadTracks(mainposter[3],PrepLatestTracks(m.co[3],m.limit))
?"close dialog"
dialog.close()
?"dialog should be closed"
else if m.li = 3 and mainposter[m.li].poster[itemindex].action="next"
dialog.setmessageport(port)
dialog.show()
?"Latest tracks section and a Page Forward item has been selected"
m.co[m.li]=m.co[m.li]+m.limit 'page forwards
? "new offset"
?m.co[m.li]
?m.li
mainposter[3]=ReloadTracks(mainposter[3],PrepLatestTracks(m.co[3],m.limit))
dialog.close()
Sub ShowOkDialog(title as String, text as String)
port = CreateObject("roMessagePort")
dialog = CreateObject("roMessageDialog")
dialog.SetMessagePort(port)
dialog.SetTitle(title)
dialog.SetText(text)
dialog.AddButton(1, "Ok")
dialog.Show()
dlgMsg = wait(0, dialog.GetMessagePort())
End Sub
"jbrave" wrote:
Actually there is about 15-20 seconds that it is open, that is how long it takes to download and process all that data.
It needs to open before the function call and close afterwards
We’re upgrading Roku Community to bring you a faster, more mobile-friendly experience. You may notice limited functionality or read-only access during this time. You will not be able to log in or post new comments or kudos during this time. Read more here.
Planned Downtime:
Community will be unavailable for up to 24–48 hours during the upgrade window during the week of May 12 and you may notice reduced functionality.
In the meantime, for additional assistance, visit our Support Site.
Thanks for your patience — we’re excited to share what’s next!