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

Don’t use goto to call a function.

–Mark

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