
squirreltown
Roku Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2013
08:37 AM
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.
Thanks
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
2 REPLIES 2

RokuMarkn
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2013
09:20 AM
Re: Launch grid from somewhere
Don't use goto to call a function.
--Mark
--Mark

squirreltown
Roku Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2013
09:30 AM
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
Edit: Ok got it. It didnt seem to work in a separate file. Thankyou
Kinetics Screensavers