Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
squirreltown
Roku Guru

Launch grid from somewhere

I 'd like to add a gridscreen to my app, starting with the simplegrid from the SDK. Having trouble with the syntax of how to launch it, for instance from a button on an info dialog. The simplegrid starts with a Main() sub, which i changed to Grid(). Have transfered all the theme stuff over to my own main.brs so just trying to get it to start right now.

if msg.isbuttonpressed()
button = msg.getindex()
print "Info Button ";button;" pressed"
if button = 8
infomenu.Close()
goto Grid()
return 0
end if
end if

Thanks
Kinetics Screensavers
0 Kudos
2 REPLIES 2
RokuMarkn
Visitor

Re: Launch grid from somewhere

Don't use goto to call a function.

--Mark
0 Kudos
squirreltown
Roku Guru

Re: Launch grid from somewhere

Thank you Mark, when I just used Grid() the debugger said it was calling a function thats not a function, didn't help changing the sub to a function either

Edit: Ok got it. It didnt seem to work in a separate file. Thankyou
Kinetics Screensavers
0 Kudos